Use existing file path consistently

This commit is contained in:
Elena Tanasoiu
2023-03-21 08:38:23 +00:00
parent 5444a9e55e
commit 737a1f5c37

View File

@@ -288,12 +288,7 @@ export async function prepareCodeTour(): Promise<void> {
existsSync(toursFolderPath) && existsSync(toursFolderPath) &&
!isCodespacesTemplate() !isCodespacesTemplate()
) { ) {
const tutorialWorkspaceUri = Uri.parse( const tutorialWorkspaceUri = Uri.parse(tutorialWorkspacePath);
join(
workspace.workspaceFolders[0].uri.fsPath,
"tutorial.code-workspace",
),
);
await commands.executeCommand("vscode.openFolder", tutorialWorkspaceUri); await commands.executeCommand("vscode.openFolder", tutorialWorkspaceUri);
} }
} }