From 73799640481c269a5aad408c99a22592d914fb1b Mon Sep 17 00:00:00 2001 From: Veetaha Date: Mon, 17 Feb 2020 22:09:44 +0200 Subject: vscode: press ; to respect semicolons --- editors/code/src/main.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'editors/code/src/main.ts') diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 0ad7ef1bb..a22e0bc66 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -11,7 +11,7 @@ import { Config } from './config'; let ctx: Ctx | undefined; export async function activate(context: vscode.ExtensionContext) { - const config = new Config(context) + const config = new Config(context); const serverPath = await ensureServerBinary(config.serverSource); if (serverPath == null) { @@ -33,7 +33,7 @@ export async function activate(context: vscode.ExtensionContext) { vscode.window.showInformationMessage('Reloading rust-analyzer...'); // @DanTup maneuver // https://github.com/microsoft/vscode/issues/45774#issuecomment-373423895 - await deactivate() + await deactivate(); for (const sub of ctx.subscriptions) { try { sub.dispose(); @@ -41,9 +41,9 @@ export async function activate(context: vscode.ExtensionContext) { console.error(e); } } - await activate(context) - } - }) + await activate(context); + }; + }); ctx.registerCommand('analyzerStatus', commands.analyzerStatus); ctx.registerCommand('collectGarbage', commands.collectGarbage); @@ -54,7 +54,7 @@ export async function activate(context: vscode.ExtensionContext) { ctx.registerCommand('expandMacro', commands.expandMacro); ctx.registerCommand('run', commands.run); ctx.registerCommand('onEnter', commands.onEnter); - ctx.registerCommand('ssr', commands.ssr) + ctx.registerCommand('ssr', commands.ssr); // Internal commands which are invoked by the server. ctx.registerCommand('runSingle', commands.runSingle); -- cgit v1.2.3