summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-19 21:47:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-19 21:47:51 +0800
commit18235bacf97dc0e0971ffbaeba29badee7998960 (patch)
treef0886e7fa3ea65eef7451adf86f4767f6ea3f416 /client/src
parent0b31d7c38b8d5c0d82b14979ffdd280f57bd18c5 (diff)
downloadlua-language-server-18235bacf97dc0e0971ffbaeba29badee7998960.zip
改个名
Diffstat (limited to 'client/src')
-rw-r--r--client/src/extension.ts24
1 files changed, 19 insertions, 5 deletions
diff --git a/client/src/extension.ts b/client/src/extension.ts
index 83a8f414..6e0c318d 100644
--- a/client/src/extension.ts
+++ b/client/src/extension.ts
@@ -29,30 +29,44 @@ export function activate(context: ExtensionContext) {
}
};
+ let beta: boolean = workspace.getConfiguration("Lua.zzzzzz").get("cat");
let command: string;
let platform: string = os.platform();
switch (platform) {
case "win32":
command = context.asAbsolutePath(
- path.join('server', 'Windows', 'bin', 'lua-language-server.exe')
+ path.join(
+ beta ? 'server-beta' : 'server',
+ 'Windows',
+ 'bin',
+ beta ? 'lua-beta.exe' : 'lua.exe'
+ )
);
break;
case "linux":
command = context.asAbsolutePath(
- path.join('server', 'Linux', 'bin', 'lua-language-server')
+ path.join(
+ beta ? 'server-beta' : 'server',
+ 'Linux',
+ 'bin',
+ beta? 'lua-beta' : 'lua'
+ )
);
fs.chmodSync(command, '777');
break;
case "darwin":
command = context.asAbsolutePath(
- path.join('server', 'macOS', 'bin', 'lua-language-server')
+ path.join(
+ beta ? 'server-beta' : 'server',
+ 'macOS',
+ 'bin',
+ beta? 'lua-beta' : 'lua'
+ )
);
fs.chmodSync(command, '777');
break;
}
- let beta: boolean = workspace.getConfiguration("Lua.zzzzzz").get("cat");
-
let serverOptions: ServerOptions = {
command: command,
args: [