File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -276,13 +276,20 @@ export async function prepareCodeTour(): Promise<void> {
276276 if ( workspace . workspaceFolders ?. length ) {
277277 const currentFolder = workspace . workspaceFolders [ 0 ] . uri . fsPath ;
278278
279- // We need this path to check that the file exists on windows
280279 const tutorialWorkspacePath = join (
281280 currentFolder ,
282281 "tutorial.code-workspace" ,
283282 ) ;
284283 const toursFolderPath = join ( currentFolder , ".tours" ) ;
285284
285+ /** We're opening the tutorial workspace, if we detect it.
286+ * This will only happen if the following three conditions are met:
287+ * - the .tours folder exists
288+ * - the tutorial.code-workspace file exists
289+ * - the CODESPACES_TEMPLATE setting doesn't exist (it's only set if the user has already opened
290+ * the tutorial workspace so it's a good indicator that the user is in the folder but has ignored
291+ * the prompt to open the workspace)
292+ */
286293 if (
287294 existsSync ( tutorialWorkspacePath ) &&
288295 existsSync ( toursFolderPath ) &&
You can’t perform that action at this time.
0 commit comments