Skip to content

Commit 3bf7eec

Browse files
ok
1 parent 249b55a commit 3bf7eec

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Bend programming language's complete language support extension",
55
"icon": "./icons/icon.avif",
66
"license": "MIT",
7-
"version": "0.2.11",
7+
"version": "0.2.12",
88
"author": "Rohan Vashisht",
99
"bugs": {
1010
"email": "[email protected]",

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import formatCurrentDocument from "./codeFormatter";
44
import fileRunners from "./fileRunners";
55
import installBend from "./installBend";
66
import BendTreeDataProvider from "./bendTreeDataProvider";
7-
import { LanguageClient, LanguageClientOptions, ServerOptions } from 'vscode-languageclient/node';
7+
import { LanguageClient } from 'vscode-languageclient/node';
88
import runLSP from "./lsp";
99

1010

src/lsp.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import vscode from "vscode";
21
import { LanguageClient, LanguageClientOptions, ServerOptions } from "vscode-languageclient/node";
32
import os from "os"
43
import path from "path";
@@ -37,10 +36,12 @@ export default function runLSP() {
3736
executablePath = path.join(__dirname, '..', 'lsp-bin', 'linux', 'arm64');
3837
}
3938
}
40-
fs.chmod(executablePath, 0o775, (err) => {
41-
if (err) throw err;
42-
console.log('The permissions for file "my_file.txt" have been changed!');
43-
});
39+
if (platform !== "win32") {
40+
fs.chmod(executablePath, 0o775, (err) => {
41+
if (err) throw err;
42+
console.log('The permissions for file "my_file.txt" have been changed!');
43+
});
44+
}
4445

4546
let serverOptions: ServerOptions = {
4647
run: { command: executablePath },

0 commit comments

Comments
 (0)