Skip to content

Commit 6239116

Browse files
Merge pull request #448 from gjsjohnmurray/fix-447
fix #447 bad folder name for server-side .vscode storage
2 parents b903394 + e405419 commit 6239116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export function redirectDotvscodeRoot(uri: vscode.Uri): vscode.Uri {
349349
}
350350
const dotMatch = uri.path.match(/^\/(\.[^/]*)\/(.*)$/);
351351
if (dotMatch && dotMatch[1] === ".vscode") {
352-
const nsMatch = `&${uri.query}&`.match(/&ns=(.+)&/);
352+
const nsMatch = `&${uri.query}&`.match(/&ns=([^&]+)&/);
353353
if (!nsMatch) {
354354
throw new Error("No 'ns' query parameter on uri");
355355
}

0 commit comments

Comments
 (0)