We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5699e48 commit ca7c815Copy full SHA for ca7c815
src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs
@@ -96,7 +96,10 @@ public PsesInternalHost(
96
Name = "PSES Pipeline Execution Thread",
97
};
98
99
- _pipelineThread.SetApartmentState(ApartmentState.STA);
+ if (VersionUtils.IsWindows)
100
+ {
101
+ _pipelineThread.SetApartmentState(ApartmentState.STA);
102
+ }
103
104
PublicHost = new EditorServicesConsolePSHost(this);
105
Name = hostInfo.Name;
0 commit comments