fix: walkthrough restore and page title (#231616)

This commit is contained in:
Bhavya U authored and GitHub committed 2024-10-18 00:53:14 +02:00
1 parent 9d032955ff
commit 83f64ef6bb
2 files changed
+6 -1

No files matched your search

@@ -304,6 +304,11 @@ export class GettingStartedPage extends EditorPane {
return;
}
const editorPane = this.groupsService.activeGroup.activeEditorPane;
if (!(editorPane instanceof GettingStartedPage)) {
return;
}
// Save the state of the walkthrough so we can restore it on reload
const restoreData: RestoreWalkthroughsConfigurationValue = { folder: UNKNOWN_EMPTY_WINDOW_WORKSPACE.id, category: this.editorInput.selectedCategory, step: this.editorInput.selectedStep };
this.storageService.store(
@@ -72,7 +72,7 @@ export class GettingStartedInput extends EditorInput {
}
override getName() {
return this.selectedCategory ? this.walkthroughService.getWalkthrough(this.selectedCategory).walkthroughPageTitle : localize('getStarted', "Welcome");
return this.selectedCategory ? localize('walkthroughPageTitle', 'Walkthrough: ') + this.walkthroughService.getWalkthrough(this.selectedCategory).walkthroughPageTitle : localize('getStarted', "Welcome");
}
get selectedCategory() {