diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-28 23:55:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-28 23:55:00 +0800 |
commit | f4d1b0210a63a91965198f2042750333882fadaa (patch) | |
tree | 7b108c8615a029b2ad13e02205892ba15cef7852 /client/src | |
parent | 8b8cb7760d9ee01475d068f18ea88be1e96f1cf0 (diff) | |
download | lua-language-server-f4d1b0210a63a91965198f2042750333882fadaa.zip |
服务加载位置
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/extension.ts | 38 |
1 files changed, 11 insertions, 27 deletions
diff --git a/client/src/extension.ts b/client/src/extension.ts index c6aba572..db9cbdda 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -10,7 +10,6 @@ import { LanguageClient, LanguageClientOptions, ServerOptions, - TransportKind } from 'vscode-languageclient'; let client: LanguageClient; @@ -21,32 +20,17 @@ export function activate(context: ExtensionContext) { // If the extension is launched in debug mode then the debug server options are used // Otherwise the run options are used let serverOptions: ServerOptions = { - run: { - command: context.asAbsolutePath( - path.join('server', 'bin', 'lua-language-server') - ), - args: [ - '-E', - '-e', - 'LANG="' + language + '"', - context.asAbsolutePath( - path.join('server', 'main.lua') - ) - ] - }, - debug: { - command: context.asAbsolutePath( - path.join('server', 'bin', 'lua-language-server') - ), - args: [ - '-E', - '-e', - 'LANG="' + language + '"', - context.asAbsolutePath( - path.join('server', 'main.lua') - ) - ] - } + command: context.asAbsolutePath( + path.join('server', 'Windows', 'bin', 'lua-language-server') + ), + args: [ + '-E', + '-e', + 'LANG="' + language + '"', + context.asAbsolutePath( + path.join('server', 'main.lua') + ) + ] }; // Options to control the language client |