summaryrefslogtreecommitdiff
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
parent8b8cb7760d9ee01475d068f18ea88be1e96f1cf0 (diff)
downloadlua-language-server-f4d1b0210a63a91965198f2042750333882fadaa.zip
服务加载位置
-rw-r--r--client/out/extension.js25
-rw-r--r--client/out/extension.js.map2
-rw-r--r--client/src/extension.ts38
3 files changed, 19 insertions, 46 deletions
diff --git a/client/out/extension.js b/client/out/extension.js
index af5c2bf9..6fe820d8 100644
--- a/client/out/extension.js
+++ b/client/out/extension.js
@@ -13,24 +13,13 @@ function activate(context) {
// If the extension is launched in debug mode then the debug server options are used
// Otherwise the run options are used
let 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
let clientOptions = {
diff --git a/client/out/extension.js.map b/client/out/extension.js.map
index 44809556..241f960e 100644
--- a/client/out/extension.js.map
+++ b/client/out/extension.js.map
@@ -1 +1 @@
-{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;AAEhG,6BAA6B;AAC7B,mCAA0D;AAE1D,iEAK+B;AAE/B,IAAI,MAAsB,CAAC;AAE3B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S,CAAC;KACjB;IACD,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACtB,CAAC;AALD,gCAKC"} \ No newline at end of file
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