Skip to content

Commit 9c04628

Browse files
committed
支持多工作目录
1 parent c46ac97 commit 9c04628

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

client/out/languageserver.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/languageserver.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let clients: Map<string, LanguageClient> = new Map();
2424

2525
function registerCustomCommands(context: ExtensionContext) {
2626
context.subscriptions.push(Commands.registerCommand('lua.config', (data) => {
27-
let config = Workspace.getConfiguration(undefined, Uri.parse(data.uri))
27+
let config = Workspace.getConfiguration(undefined, Uri.parse(data.uri));
2828
if (data.action == 'add') {
2929
let value: any[] = config.get(data.key);
3030
value.push(data.value);
@@ -80,11 +80,12 @@ function start(context: ExtensionContext, documentSelector: DocumentSelector, fo
8080
workspaceFolder: folder,
8181
};
8282

83-
let beta: boolean = Workspace.getConfiguration().get("Lua.zzzzzz.cat");
83+
let config = Workspace.getConfiguration(undefined, folder);
84+
let beta: boolean = config.get("Lua.zzzzzz.cat");
8485
//let beta: boolean = false;
85-
let develop: boolean = Workspace.getConfiguration().get("Lua.develop.enable");
86-
let debuggerPort: number = Workspace.getConfiguration().get("Lua.develop.debuggerPort");
87-
let debuggerWait: boolean = Workspace.getConfiguration().get("Lua.develop.debuggerWait");
86+
let develop: boolean = config.get("Lua.develop.enable");
87+
let debuggerPort: number = config.get("Lua.develop.debuggerPort");
88+
let debuggerWait: boolean = config.get("Lua.develop.debuggerWait");
8889
let command: string;
8990
let platform: string = os.platform();
9091
switch (platform) {

0 commit comments

Comments
 (0)