Skip to content

Commit 1d29644

Browse files
authored
fix(extension): make sure the binary is execuatable (#178)
1 parent 53a9408 commit 1d29644

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/vscode-extension/src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
ServerOptions,
77
TransportKind,
88
} from 'vscode-languageclient/node';
9+
import { chmodSync } from 'node:fs';
910

1011
let client: LanguageClient;
1112

@@ -19,6 +20,7 @@ export function activate(context: ExtensionContext) {
1920
? binPathConfig
2021
: Uri.joinPath(context.extensionUri, 'dist', 'rslint').fsPath;
2122
console.log('Rslint binary path:', binPath);
23+
chmodSync(binPath, 0o755); // The binary might not be executable by default
2224
const run: Executable = {
2325
command: binPath,
2426
args: ['--lsp'],

0 commit comments

Comments
 (0)