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 d0e089c commit 0bd5350Copy full SHA for 0bd5350
Extension/src/LanguageServer/client.ts
@@ -2284,9 +2284,12 @@ export class DefaultClient implements Client {
2284
message += ` (${err})`;
2285
}
2286
2287
- if (await vscode.window.showInformationMessage(message, dismiss, disable) === disable) {
2288
- settings.toggleSetting("configurationWarnings", "enabled", "disabled");
2289
- }
+ // Do not await here, as that would prevent the function from returning until the user dismisses the message.
+ void vscode.window.showInformationMessage(message, dismiss, disable).then(result => {
+ if (result === disable) {
2290
+ settings.toggleSetting("configurationWarnings", "enabled", "disabled");
2291
+ }
2292
+ });
2293
2294
2295
return result;
0 commit comments