Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
  • Loading branch information
gdotdesign and Sija authored Jan 20, 2021
1 parent cd425e7 commit 1c99d11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -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<void> {
/// Set context deactivated
vscode.commands.executeCommand("setContext", "mint:isActivated", false);
if (client) { client.stop() }
if (client) {
client.stop()
}
}

0 comments on commit 1c99d11

Please # to comment.