Skip to content

Commit

Permalink
fix extension's LSP server path for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontanCombust committed Jan 27, 2024
1 parent 3586abe commit 362209f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editors/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import {
let client: LanguageClient;

export function activate(context: vscode.ExtensionContext) {
const ext = process.platform === "win32" ? ".exe" : "";
const serverPath = context.asAbsolutePath(
path.join('server', 'bin', 'witcherscript-lsp.exe')
path.join('server', 'bin', `witcherscript-lsp${ext}`)
);

// If the extension is launched in debug mode then the debug server options are used
Expand Down

0 comments on commit 362209f

Please sign in to comment.