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 5376d41 commit 01c8e52Copy full SHA for 01c8e52
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