ctx.pushCleanup(activateTaskProvider(workspaceFolder, ctx.config));
activateInlayHints(ctx);
+ warnAboutRustLangExtensionConflict();
vscode.workspace.onDidChangeConfiguration(
_ => ctx?.client?.sendNotification('workspace/didChangeConfiguration', { settings: "" }),
await state.updateGithubToken(newToken);
}
}
+
+function warnAboutRustLangExtensionConflict() {
+ const rustLangExt = vscode.extensions.getExtension("rust-lang.rust");
+ if (rustLangExt !== undefined) {
+ vscode.window .showWarningMessage(
+ "You have both rust-analyzer (matklad.rust-analyzer) and Rust (rust-lang.rust) " +
+ "plugins enabled. These are known to conflict and cause various functions of " +
+ "both plugins to not work correctly. You should disable one of them.", "Got it")
+ };
+}