Skip to content

Commit 1c17cf1

Browse files
committed
CodeEditor.Editor is not available with 2020
1 parent f4d9585 commit 1c17cf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Packages/com.unity.ide.visualstudio/Editor/VisualStudioEditor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ static VisualStudioEditor()
4343
_discoverInstallations = AsyncOperation<Dictionary<string, IVisualStudioInstallation>>.Run(DiscoverInstallations);
4444
}
4545

46+
#if UNITY_2019_4_OR_NEWER && !UNITY_2020
4647
[InitializeOnLoadMethod]
4748
static void LegacyVisualStudioCodePackageDisabler()
4849
{
@@ -56,6 +57,7 @@ static void LegacyVisualStudioCodePackageDisabler()
5657

5758
CodeEditor.Unregister(editor);
5859
}
60+
#endif
5961

6062
private static Dictionary<string, IVisualStudioInstallation> DiscoverInstallations()
6163
{

0 commit comments

Comments
 (0)