Skip to content

Commit e6efac0

Browse files
authored
Open correct tutorial workspace on Windows (#2240)
1 parent 92d66c6 commit e6efac0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/ql-vscode/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export async function prepareCodeTour(
304304
return;
305305
}
306306

307-
const tutorialWorkspaceUri = Uri.parse(tutorialWorkspacePath);
307+
const tutorialWorkspaceUri = Uri.file(tutorialWorkspacePath);
308308

309309
void extLogger.log(
310310
`In prepareCodeTour() method, going to open the tutorial workspace file: ${tutorialWorkspacePath}`,

extensions/ql-vscode/test/vscode-tests/no-workspace/helpers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ describe("prepareCodeTour", () => {
619619
expect(executeCommand).toHaveBeenCalledWith(
620620
"vscode.openFolder",
621621
expect.objectContaining({
622-
path: Uri.parse(tutorialWorkspacePath).fsPath,
622+
path: expect.stringMatching(/tutorial.code-workspace$/),
623623
}),
624624
);
625625
});

0 commit comments

Comments
 (0)