Skip to content

Commit

Permalink
ensured there is always a single server per language (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashish Choudhary <[email protected]>
Co-authored-by: David JENNI <[email protected]>
  • Loading branch information
3 people authored May 25, 2021
1 parent addd457 commit 5e5ec4c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import {
} from "vscode-languageclient/node";

let client: LanguageClient;
let _context: vscode.ExtensionContext
let _context: vscode.ExtensionContext;
let htmlServerRunning = false;
let yamlServerRunning = false;

export async function activate(
context: vscode.ExtensionContext
Expand Down Expand Up @@ -103,8 +105,7 @@ export function deactivate(): Thenable<void> | undefined {
}

function didOpenTextDocument(document: vscode.TextDocument): void {
let htmlServerRunning = false;
let yamlServerRunning = false;

// The debug options for the server
// --inspect=6009: runs the server in Node's Inspector mode so VS Code can attach to the server for debugging
const debugOptions = { execArgv: ["--nolazy", "--inspect=6009"] };
Expand Down

0 comments on commit 5e5ec4c

Please sign in to comment.