Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit a93456c

Browse files
committed
Add deprecation notification pop up
1 parent b1ae67b commit a93456c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/extension.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ export interface Api {
3232
}
3333

3434
export async function activate(context: ExtensionContext): Promise<Api> {
35+
await window.showWarningMessage(
36+
"rust-lang.rust has been deprecated. Please uninstall this extension and install rust-lang.rust-analyzer instead. You can find the extension by clicking on one of the buttons",
37+
"Open in your browser", "Open in a new editor tab"
38+
).then(button => {
39+
commands.executeCommand(
40+
'vscode.open',
41+
button == "Open browser"
42+
? Uri.parse('https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer')
43+
: Uri.parse("vscode:extension/rust-lang.rust-analyzer")
44+
);
45+
});
3546
context.subscriptions.push(
3647
...[
3748
configureLanguage(),

0 commit comments

Comments
 (0)