From 1c99d1108a3a3b7ba87239154ab2af4e65dc82d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szikszai=20Guszt=C3=A1v?= Date: Wed, 20 Jan 2021 12:46:18 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sijawusz Pur Rahnama --- src/extension.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index b1f89d9..ce1fbe5 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -32,7 +32,7 @@ export async function activate( vscode.commands.registerCommand("mint.test", cmd.mintTestCommand); vscode.commands.registerCommand("mint.version", cmd.mintVersionCommand); - let binaryLocation : string = vscode.workspace.getConfiguration('mint_language_server').get('location') + const binaryLocation : string = vscode.workspace.getConfiguration('mint_language_server').get('location') if (binaryLocation) { if (fs.existsSync(binaryLocation)) { @@ -62,5 +62,7 @@ export async function activate( export async function deactivate(isRestart: boolean = false): Promise { /// Set context deactivated vscode.commands.executeCommand("setContext", "mint:isActivated", false); - if (client) { client.stop() } + if (client) { + client.stop() + } }