diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-18 17:59:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-18 17:59:25 +0800 |
commit | 7373fbc062e235806607e0ab908f6deed0c7e3db (patch) | |
tree | 786796220431b558f22fd0ff83c14f268fadb07c /client/src/extension.ts | |
parent | 8f8d4efcd05b5500790d2423ba46a2b779448aff (diff) | |
download | lua-language-server-7373fbc062e235806607e0ab908f6deed0c7e3db.zip |
根据选项启用测试版语言服务
Diffstat (limited to 'client/src/extension.ts')
-rw-r--r-- | client/src/extension.ts | 9 |
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' + )) ] }; |