Skip to content

Commit b1c85b0

Browse files
fixing build break
1 parent 5a5dee3 commit b1c85b0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/RustAnalyzer/Shell/ToolChainCommands.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,13 @@ protected PathEx GetManifestPath()
103103
}
104104

105105
protected string GetToolArgsFromSettings(string argName)
106-
=> RustAnalyzerPackage.JTF.Run(async () => await CmdServices.SettingsService.GetAsync(argName, GetManifestPath()));
106+
=> RustAnalyzerPackage.JTF.Run(
107+
async () =>
108+
{
109+
await RustAnalyzerPackage.JTF.SwitchToMainThreadAsync();
110+
111+
return await CmdServices.SettingsService.GetAsync(argName, GetManifestPath());
112+
});
107113

108114
private bool IsCommandActive()
109115
{

0 commit comments

Comments
 (0)