Close throws exception if not running on main thread. Roslyn dependency set.

This commit is contained in:
HLCaptain
2022-01-12 23:50:54 +01:00
parent e3be7fcdb4
commit 382b5c0aca
2 changed files with 2 additions and 0 deletions

View File

@@ -148,6 +148,7 @@ namespace GodotAddinVS
private void Close()
{
ThreadHelper.ThrowIfNotOnUIThread();
if (GodotMessagingClient != null)
{
ServiceContainer.RemoveService(typeof(Client));

View File

@@ -37,6 +37,7 @@
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.MonoDebugger" Version="[16.0,)" DisplayName="Mono debugger" />
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[16.0,)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.Roslyn.LanguageServices" Version="[16.0,)" DisplayName="Roslyn Language Services" />
<!--
Found no better way to make Visual Studio install Clide when installing this extension.