diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/main.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 2f3dde8ac..1c88b4613 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -132,6 +132,7 @@ async function tryActivate(context: vscode.ExtensionContext) { | |||
132 | ctx.pushCleanup(activateTaskProvider(workspaceFolder, ctx.config)); | 132 | ctx.pushCleanup(activateTaskProvider(workspaceFolder, ctx.config)); |
133 | 133 | ||
134 | activateInlayHints(ctx); | 134 | activateInlayHints(ctx); |
135 | warnAboutRustLangExtensionConflict(); | ||
135 | 136 | ||
136 | vscode.workspace.onDidChangeConfiguration( | 137 | vscode.workspace.onDidChangeConfiguration( |
137 | _ => ctx?.client?.sendNotification('workspace/didChangeConfiguration', { settings: "" }), | 138 | _ => ctx?.client?.sendNotification('workspace/didChangeConfiguration', { settings: "" }), |
@@ -399,3 +400,13 @@ async function queryForGithubToken(state: PersistentState): Promise<void> { | |||
399 | await state.updateGithubToken(newToken); | 400 | await state.updateGithubToken(newToken); |
400 | } | 401 | } |
401 | } | 402 | } |
403 | |||
404 | function warnAboutRustLangExtensionConflict() { | ||
405 | const rustLangExt = vscode.extensions.getExtension("rust-lang.rust"); | ||
406 | if (rustLangExt !== undefined) { | ||
407 | vscode.window .showWarningMessage( | ||
408 | "You have both rust-analyzer (matklad.rust-analyzer) and Rust (rust-lang.rust) " + | ||
409 | "plugins enabled. These are known to conflict and cause various functions of " + | ||
410 | "both plugins to not work correctly. You should disable one of them.", "Got it") | ||
411 | }; | ||
412 | } | ||