summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-28 23:55:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-28 23:55:00 +0800
commitf4d1b0210a63a91965198f2042750333882fadaa (patch)
tree7b108c8615a029b2ad13e02205892ba15cef7852 /client/src
parent8b8cb7760d9ee01475d068f18ea88be1e96f1cf0 (diff)
downloadlua-language-server-f4d1b0210a63a91965198f2042750333882fadaa.zip
服务加载位置
Diffstat (limited to 'client/src')
-rw-r--r--client/src/extension.ts38
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