From 7373fbc062e235806607e0ab908f6deed0c7e3db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 18 Sep 2019 17:59:25 +0800 Subject: =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E9=80=89=E9=A1=B9=E5=90=AF=E7=94=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=89=88=E8=AF=AD=E8=A8=80=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- client/out/extension.js | 5 +++-- client/out/extension.js.map | 2 +- client/src/extension.ts | 9 ++++++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index cacc09c0..1bbde4c9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ node_modules .vscode-test .vscode/ipch /server/log -/server/*.so +/server-beta/log /publish /build/ !*.exe diff --git a/client/out/extension.js b/client/out/extension.js index a58ee366..d247f89f 100644 --- a/client/out/extension.js +++ b/client/out/extension.js @@ -36,16 +36,17 @@ function activate(context) { fs.chmodSync(command, '777'); break; } + let beta = vscode_1.workspace.getConfiguration("Lua.zzzzzz").get("cat"); let serverOptions = { command: command, args: [ '-E', '-e', 'LANG="' + language + '"', - context.asAbsolutePath(path.join('server', 'main.lua')) + context.asAbsolutePath(path.join(beta ? 'server-beta' : 'server', 'main.lua')) ] }; - client = new vscode_languageclient_1.LanguageClient('Lua Language Server', 'Lua Language Client', serverOptions, clientOptions); + client = new vscode_languageclient_1.LanguageClient('Lua', 'Lua', serverOptions, clientOptions); client.start(); } exports.activate = activate; diff --git a/client/out/extension.js.map b/client/out/extension.js.map index f370f08e..a889b9c7 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;;;gGA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AC,CAChE,CAAC;YACF,MAAM;QACP,KAAK,OAAO;YACX,OAAO,GAAG,OAAO,CAAC,cAAc,CAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAC1D,CAAC;YACF,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAC7B,MAAM;QACP,KAAK,QAAQ;YACZ,OAAO,GAAG,OAAO,CAAC,cAAc,CAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAC1D,CAAC;YACF,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAC7B,MAAM;KACP;IAED,IAAI,IAAI,GAAY,kBAAS,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAExE,IAAI,aAAa,GAAkB;QAClC,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE;YACL,IAAI;YACJ,IAAI;YACJ,QAAQ,GAAG,QAAQ,GAAG,GAAG;YACzB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAC/B,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,EAC/B,UAAU,CACV,CAAC;SACF;KACD,CAAC;IAEF,MAAM,GAAG,IAAI,sCAAc,CAC1B,KAAK,EACL,KAAK,EACL,aAAa,EACb,aAAa,CACb,CAAC;IAEF,MAAM,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC;AA1DD,4BA0DC;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 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' + )) ] }; -- cgit v1.2.3