summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/out/extension.js5
-rw-r--r--client/out/extension.js.map2
-rw-r--r--client/src/extension.ts5
3 files changed, 8 insertions, 4 deletions
diff --git a/client/out/extension.js b/client/out/extension.js
index 8029df43..a58ee366 100644
--- a/client/out/extension.js
+++ b/client/out/extension.js
@@ -6,6 +6,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const os = require("os");
+const fs = require("fs");
const vscode_1 = require("vscode");
const vscode_languageclient_1 = require("vscode-languageclient");
let client;
@@ -28,9 +29,11 @@ function activate(context) {
break;
case "linux":
command = context.asAbsolutePath(path.join('server', 'Linux', 'bin', 'lua-language-server'));
+ fs.chmodSync(command, '777');
break;
case "darwin":
command = context.asAbsolutePath(path.join('server', 'macOS', 'bin', 'lua-language-server'));
+ fs.chmodSync(command, '777');
break;
}
let serverOptions = {
@@ -53,4 +56,4 @@ function deactivate() {
return client.stop();
}
exports.deactivate = deactivate;
-//# sourceMappingURL=extension.js.map
+//# sourceMappingURL=extension.js.map \ No newline at end of file
diff --git a/client/out/extension.js.map b/client/out/extension.js.map
index f78b2fb6..f370f08e 100644
--- a/client/out/extension.js.map
+++ b/client/out/extension.js.map
@@ -1 +1 @@
-{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,6BAA6B;AAC7B,yBAAyB;AACzB,mCAA0D;AAE1D,iEAI+B;AAG/B,IAAI,MAAsB,CAAC;AAE3B,SAAgB,QAAQ,CAAC,OAAyB;IACjD,IAAI,QAAQ,GAAG,YAAG,CAAC,QAAQ,CAAC;IAE5B,yCAAyC;IACzC,IAAI,aAAa,GAA0B;QAC1C,+CAA+C;QAC/C,gBAAgB,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACvD,WAAW,EAAE;YACZ,sFAAsF;YACtF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;QAClC,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE;YACL,IAAI;YACJ,IAAI;YACJ,QAAQ,GAAG,QAAQ,GAAG,GAAG;YACzB,OAAO,CAAC,cAAc,CACrB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAC/B;SACD;KACD,CAAC;IAEF,MAAM,GAAG,IAAI,sCAAc,CAC1B,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,aAAa,CACb,CAAC;IAEF,MAAM,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC;AAvDD,4BAuDC;AAED,SAAgB,UAAU;IACzB,IAAI,CAAC,MAAM,EAAE;QACZ,OAAO,SAAS,CAAC;KACjB;IACD,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC;AALD,gCAKC"} \ No newline at end of file
diff --git a/client/src/extension.ts b/client/src/extension.ts
index 2ca89cd6..0551fe64 100644
--- a/client/src/extension.ts
+++ b/client/src/extension.ts
@@ -5,6 +5,7 @@
import * as path from 'path';
import * as os from 'os';
+import * as fs from 'fs';
import { workspace, ExtensionContext, env } from 'vscode';
import {
@@ -12,7 +13,6 @@ import {
LanguageClientOptions,
ServerOptions,
} from 'vscode-languageclient';
-import { openSync } from 'fs';
let client: LanguageClient;
@@ -41,12 +41,13 @@ export function activate(context: ExtensionContext) {
command = context.asAbsolutePath(
path.join('server', 'Linux', 'bin', 'lua-language-server')
);
+ fs.chmodSync(command, '777');
break;
-
case "darwin":
command = context.asAbsolutePath(
path.join('server', 'macOS', 'bin', 'lua-language-server')
);
+ fs.chmodSync(command, '777');
break;
}