Open correct tutorial workspace on Windows (#2240)

This commit is contained in:
Shati Patel
2023-03-28 15:26:10 +01:00
committed by GitHub
parent 92d66c6297
commit e6efac0a92
2 changed files with 2 additions and 2 deletions

View File

@@ -304,7 +304,7 @@ export async function prepareCodeTour(
return;
}
const tutorialWorkspaceUri = Uri.parse(tutorialWorkspacePath);
const tutorialWorkspaceUri = Uri.file(tutorialWorkspacePath);
void extLogger.log(
`In prepareCodeTour() method, going to open the tutorial workspace file: ${tutorialWorkspacePath}`,

View File

@@ -619,7 +619,7 @@ describe("prepareCodeTour", () => {
expect(executeCommand).toHaveBeenCalledWith(
"vscode.openFolder",
expect.objectContaining({
path: Uri.parse(tutorialWorkspacePath).fsPath,
path: expect.stringMatching(/tutorial.code-workspace$/),
}),
);
});