Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP: Preparations and Cleanup #687

Merged
merged 11 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,21 @@ jobs:
restore-keys: |
Library-SEE-Tests
Library-SEE
- uses: game-ci/unity-test-runner@c80d9094f5f5f471d0ae6f44a8c8868a448bfb7e
- name: Restore NuGet packages
run: /home/see/.dotnet/tools/nugetforunity restore .
- uses: game-ci/[email protected]
timeout-minutes: 45
name: Run Tests
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: Test Results
testMode: EditMode # PlayMode tests get stuck in batchmode
runAsHostUser: true
customParameters: -testCategory "!NonDeterministic"
coverageOptions: 'generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+SEE'
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -215,16 +220,21 @@ jobs:
# Try deleting any previous build, but not other zip files that we may need later.
git clean -fd -e 'build-*.zip'
rm -rf build "build-${{ matrix.targetPlatform }}.zip" || true
- uses: game-ci/unity-builder@7afabe74da5227a9ecd537f5260b398258c3eb3b
- name: Restore NuGet packages
run: /home/see/.dotnet/tools/nugetforunity restore .
- uses: game-ci/unity-builder@v4
timeout-minutes: 45
name: Build project
id: build
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
buildName: ${{ matrix.targetPlatform }}
buildMethod: CITools.BuildScript.Build
runAsHostUser: true
allowDirtyBuild: true
- name: Compress build
# Compress only if manually triggered or merged into master, otherwise we won't upload.
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ Data/Vcs2See/target/
packages/
Build/
build/
Assets/Packages/
Assets/Packages.meta
16 changes: 16 additions & 0 deletions Assets/NuGet.config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Assets/NuGet.config.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Assets/Plugins/FuzzySharp.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/FuzzySharp/FuzzySharp.dll

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/FuzzySharp/FuzzySharp.dll.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/FuzzySharp/LICENSE

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/FuzzySharp/LICENSE.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/HTML Agility Pack.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/HTML Agility Pack/HtmlAgilityPack.dll

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/HTML Agility Pack/HtmlAgilityPack.dll.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/Joveler.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/Joveler/Joveler.Compression.XZ.dll

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/Joveler/Joveler.Compression.XZ.dll.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/Joveler/Joveler.DynLoader.dll

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/Joveler/Joveler.DynLoader.dll.meta

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/Joveler/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions Assets/Plugins/Joveler/README.md.meta

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 0 additions & 109 deletions Assets/Resources/Prefabs/UI/CodeWindowContent.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 866037333387126464}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -107,7 +106,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2059283171776054673}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down Expand Up @@ -182,7 +180,6 @@ RectTransform:
m_Children:
- {fileID: 6188502100002923432}
m_Father: {fileID: 2059283171776054673}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down Expand Up @@ -223,7 +220,6 @@ RectTransform:
- {fileID: 8846550913904393515}
- {fileID: 866037333387126464}
m_Father: {fileID: 8823517661499080595}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
Expand Down Expand Up @@ -334,7 +330,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8823517660650887623}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -409,7 +404,6 @@ RectTransform:
m_Children:
- {fileID: 8823517660152590212}
m_Father: {fileID: 8823517661645426698}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand All @@ -427,7 +421,6 @@ GameObject:
- component: {fileID: 8823517660942610107}
- component: {fileID: 8823517660942610105}
- component: {fileID: 8823517660942610106}
- component: {fileID: 3073544921871865740}
- component: {fileID: 8823517660942610104}
m_Layer: 5
m_Name: Code
Expand All @@ -449,7 +442,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8823517661499080595}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
Expand Down Expand Up @@ -554,104 +546,6 @@ MonoBehaviour:
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &3073544921871865740
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8823517660942610108}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2da0c512f12947e489f739169773d7ca, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 1, g: 1, b: 1, a: 1}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 0
m_TargetGraphic: {fileID: 8823517660942610106}
m_TextViewport: {fileID: 8823517661499080595}
m_TextComponent: {fileID: 8823517660942610106}
m_Placeholder: {fileID: 0}
m_VerticalScrollbar: {fileID: 0}
m_VerticalScrollbarEventHandler: {fileID: 0}
m_LayoutGroup: {fileID: 0}
m_ScrollSensitivity: 1
m_ContentType: 0
m_InputType: 0
m_AsteriskChar: 42
m_KeyboardType: 0
m_LineType: 2
m_HideMobileInput: 0
m_HideSoftKeyboard: 0
m_CharacterValidation: 0
m_RegexValue:
m_GlobalPointSize: 14
m_CharacterLimit: 0
m_OnEndEdit:
m_PersistentCalls:
m_Calls: []
m_OnSubmit:
m_PersistentCalls:
m_Calls: []
m_OnSelect:
m_PersistentCalls:
m_Calls: []
m_OnDeselect:
m_PersistentCalls:
m_Calls: []
m_OnTextSelection:
m_PersistentCalls:
m_Calls: []
m_OnEndTextSelection:
m_PersistentCalls:
m_Calls: []
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
m_OnTouchScreenKeyboardStatusChanged:
m_PersistentCalls:
m_Calls: []
m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_CustomCaretColor: 0
m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412}
m_Text:
m_CaretBlinkRate: 0.85
m_CaretWidth: 1
m_ReadOnly: 0
m_RichText: 1
m_GlobalFontAsset: {fileID: 0}
m_OnFocusSelectAll: 0
m_ResetOnDeActivation: 0
m_RestoreOriginalTextOnEscape: 0
m_isRichTextEditingAllowed: 0
m_LineLimit: 0
m_InputValidator: {fileID: 0}
--- !u!114 &8823517660942610104
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -697,7 +591,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8823517661645426698}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down Expand Up @@ -779,7 +672,6 @@ RectTransform:
- {fileID: 8823517661645426698}
- {fileID: 2059283171776054673}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down Expand Up @@ -923,7 +815,6 @@ RectTransform:
- {fileID: 8823517661321162181}
- {fileID: 8823517660650887623}
m_Father: {fileID: 8823517661499080595}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down
6 changes: 3 additions & 3 deletions Assets/SEE/Controls/Actions/ContextMenuAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private static IEnumerable<PopupMenuAction> GetNodeOptions(Node node, GameObject

void RevealInTreeView()
{
ActivateTreeWindow(node, gameObject.transform).RevealElement(node).Forget();
ActivateTreeWindow(node, gameObject.transform).RevealElementAsync(node).Forget();
}
}

Expand Down Expand Up @@ -212,12 +212,12 @@ private static IEnumerable<PopupMenuAction> GetEdgeOptions(Edge edge, GameObject

void RevealAtSource()
{
ActivateTreeWindow(edge, gameObject.transform).RevealElement(edge, viaSource: true).Forget();
ActivateTreeWindow(edge, gameObject.transform).RevealElementAsync(edge, viaSource: true).Forget();
}

void RevealAtTarget()
{
ActivateTreeWindow(edge, gameObject.transform).RevealElement(edge, viaSource: false).Forget();
ActivateTreeWindow(edge, gameObject.transform).RevealElementAsync(edge, viaSource: false).Forget();
}

void ShowUnifiedDiff()
Expand Down
5 changes: 0 additions & 5 deletions Assets/SEE/Controls/Actions/ShowCodeAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ public override HashSet<string> GetChangedObjects()

public override void Awake()
{
// In case we do not have an ID yet, we request one.
if (ICRDT.GetLocalID() == 0)
{
new NetCRDT().RequestID();
}
spaceManager = WindowSpaceManager.ManagerInstance;
}

Expand Down
Loading