summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-27 09:59:13 +0800
committersumneko <sumneko@hotmail.com>2019-05-27 09:59:13 +0800
commit85328f177a6783fab57283b28a0ce9ff0f32402f (patch)
tree7621c661f9440daf1aee3b5aaecc7c98a3d950b2 /client
parent71eef9f8ae04187f33ed3ecd09d16e22fc83d785 (diff)
downloadlua-language-server-85328f177a6783fab57283b28a0ce9ff0f32402f.zip
#39 不再依赖 CWD
Diffstat (limited to 'client')
-rw-r--r--client/out/extension.js14
-rw-r--r--client/out/extension.js.map2
-rw-r--r--client/src/extension.ts14
3 files changed, 7 insertions, 23 deletions
diff --git a/client/out/extension.js b/client/out/extension.js
index 533791ba..af5c2bf9 100644
--- a/client/out/extension.js
+++ b/client/out/extension.js
@@ -20,10 +20,7 @@ function activate(context) {
'-e',
'LANG="' + language + '"',
context.asAbsolutePath(path.join('server', 'main.lua'))
- ],
- options: {
- cwd: context.asAbsolutePath(path.join('server')),
- }
+ ]
},
debug: {
command: context.asAbsolutePath(path.join('server', 'bin', 'lua-language-server')),
@@ -32,10 +29,7 @@ function activate(context) {
'-e',
'LANG="' + language + '"',
context.asAbsolutePath(path.join('server', 'main.lua'))
- ],
- options: {
- cwd: context.asAbsolutePath(path.join('server')),
- }
+ ]
}
};
// Options to control the language client
@@ -48,7 +42,7 @@ function activate(context) {
}
};
// Create the language client and start the client.
- client = new vscode_languageclient_1.LanguageClient('sumneko.lua-lsp', 'sumneko.lua-lsp', serverOptions, clientOptions);
+ client = new vscode_languageclient_1.LanguageClient('Lua Language Server', 'Lua Language Client', serverOptions, clientOptions);
// Start the client. This will also launch the server
client.start();
}
@@ -60,4 +54,4 @@ function deactivate() {
return client.stop();
}
exports.deactivate = deactivate;
-//# sourceMappingURL=extension.js.map
+//# sourceMappingURL=extension.js.map \ No newline at end of file
diff --git a/client/out/extension.js.map b/client/out/extension.js.map
index e7492e81..44809556 100644
--- a/client/out/extension.js.map
+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K,EAAE,qBAAqB,CAAC,CACjD;YACD,IAAI,EAAE;gBACL,IAAI;gBACJ,IAAI;gBACJ,QAAQ,GAAG,QAAQ,GAAG,GAAG;gBACzB,OAAO,CAAC,cAAc,CACrB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAC/B;aACD;SACD;KACD,CAAC;IAEF,yCAAyC;IACzC,IAAI,aAAa,GAA0B;QAC1C,+CAA+C;QAC/C,gBAAgB,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACvD,WAAW,EAAE;YACZ,sFAAsF;YACtF,UAAU,EAAE,kBAAS,CAAC,uBAAuB,CAAC,cAAc,CAAC;SAC7D;KACD,CAAC;IAEF,mDAAmD;IACnD,MAAM,GAAG,IAAI,sCAAc,CAC1B,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,aAAa,CACb,CAAC;IAEF,qDAAqD;IACrD,MAAM,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC;AAtDD,4BAsDC;AAED,SAAgB,UAAU;IACzB,IAAI,CAAC,MAAM,EAAE;QACZ,OAAO,SAAS,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 61b14f18..c6aba572 100644
--- a/client/src/extension.ts
+++ b/client/src/extension.ts
@@ -32,12 +32,7 @@ export function activate(context: ExtensionContext) {
context.asAbsolutePath(
path.join('server', 'main.lua')
)
- ],
- options: {
- cwd: context.asAbsolutePath(
- path.join('server')
- ),
- }
+ ]
},
debug: {
command: context.asAbsolutePath(
@@ -50,12 +45,7 @@ export function activate(context: ExtensionContext) {
context.asAbsolutePath(
path.join('server', 'main.lua')
)
- ],
- options: {
- cwd: context.asAbsolutePath(
- path.join('server')
- ),
- }
+ ]
}
};