summaryrefslogtreecommitdiff
path: root/client/src/extension.ts
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-18 17:59:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-18 17:59:25 +0800
commit7373fbc062e235806607e0ab908f6deed0c7e3db (patch)
tree786796220431b558f22fd0ff83c14f268fadb07c /client/src/extension.ts
parent8f8d4efcd05b5500790d2423ba46a2b779448aff (diff)
downloadlua-language-server-7373fbc062e235806607e0ab908f6deed0c7e3db.zip
根据选项启用测试版语言服务
Diffstat (limited to 'client/src/extension.ts')
-rw-r--r--client/src/extension.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/client/src/extension.ts b/client/src/extension.ts
index 83f45544..83a8f414 100644
--- a/client/src/extension.ts
+++ b/client/src/extension.ts
@@ -50,6 +50,8 @@ export function activate(context: ExtensionContext) {
fs.chmodSync(command, '777');
break;
}
+
+ let beta: boolean = workspace.getConfiguration("Lua.zzzzzz").get("cat");
let serverOptions: ServerOptions = {
command: command,
@@ -57,9 +59,10 @@ export function activate(context: ExtensionContext) {
'-E',
'-e',
'LANG="' + language + '"',
- context.asAbsolutePath(
- path.join('server', 'main.lua')
- )
+ context.asAbsolutePath(path.join(
+ beta ? 'server-beta' : 'server',
+ 'main.lua'
+ ))
]
};