Skip to content

Commit 23302e9

Browse files
committed
fix workspace uri with []
1 parent 7e08fc9 commit 23302e9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/out/languageserver.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/languageserver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,9 @@ export function activate(context: ExtensionContext) {
314314
folder = getOuterMostWorkspaceFolder(folder);
315315

316316
if (!clients.has(folder.uri.toString())) {
317+
let pattern: string = folder.uri.fsPath.replace(/(\[|\])/g, '[$1]') + '/**/*';
317318
let client = start(context, [
318-
{ scheme: 'file', language: 'lua', pattern: `${folder.uri.fsPath}/**/*` }
319+
{ scheme: 'file', language: 'lua', pattern: pattern }
319320
], folder);
320321
clients.set(folder.uri.toString(), client);
321322
}

0 commit comments

Comments
 (0)