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

Commit 3eafd7d

Browse files
committed
Format
1 parent 3f54496 commit 3eafd7d

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

src/extension.ts

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,22 @@ 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-
});
35+
await window
36+
.showWarningMessage(
37+
'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',
38+
'Open in your browser',
39+
'Open in a new editor tab',
40+
)
41+
.then(button => {
42+
commands.executeCommand(
43+
'vscode.open',
44+
button === 'Open browser'
45+
? Uri.parse(
46+
'https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer',
47+
)
48+
: Uri.parse('vscode:extension/rust-lang.rust-analyzer'),
49+
);
50+
});
4651
context.subscriptions.push(
4752
...[
4853
configureLanguage(),

0 commit comments

Comments
 (0)