fix(extension): Fix executable path for Windows

This commit is contained in:
Myzel394 2025-02-10 22:35:42 +01:00
parent e1ec57f576
commit 757f24a521
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F

View File

@ -54,9 +54,11 @@ export async function activate({subscriptions}: ExtensionContext) {
} }
function getBundledPath(): string { function getBundledPath(): string {
const filePath = path.resolve(__dirname, "config-lsp"); if (process.platform === "win32") {
return path.resolve(__dirname, "config-lsp.exe");
}
return filePath; return path.resolve(__dirname, "config-lsp");
} }
export function deactivate(): Thenable<void> | undefined { export function deactivate(): Thenable<void> | undefined {