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 5a5dee3 commit b1c85b0Copy full SHA for b1c85b0
src/RustAnalyzer/Shell/ToolChainCommands.cs
@@ -103,7 +103,13 @@ protected PathEx GetManifestPath()
103
}
104
105
protected string GetToolArgsFromSettings(string argName)
106
- => RustAnalyzerPackage.JTF.Run(async () => await CmdServices.SettingsService.GetAsync(argName, GetManifestPath()));
+ => RustAnalyzerPackage.JTF.Run(
107
+ async () =>
108
+ {
109
+ await RustAnalyzerPackage.JTF.SwitchToMainThreadAsync();
110
+
111
+ return await CmdServices.SettingsService.GetAsync(argName, GetManifestPath());
112
+ });
113
114
private bool IsCommandActive()
115
{
0 commit comments