mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Fix open walkthrough command for selecting a specific step (#206909)
This commit is contained in:
parent
e3e0fe00a3
commit
8374b219a7
|
@ -60,7 +60,7 @@ registerAction2(class extends Action2 {
|
|||
|
||||
if (walkthroughID) {
|
||||
const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID.category;
|
||||
const selectedStep = typeof walkthroughID === 'string' ? undefined : walkthroughID.step;
|
||||
const selectedStep = typeof walkthroughID === 'string' ? undefined : walkthroughID.category + '#' + walkthroughID.step;
|
||||
|
||||
// We're trying to open the welcome page from the Help menu
|
||||
if (!selectedCategory && !selectedStep) {
|
||||
|
|
|
@ -1159,7 +1159,7 @@ export class GettingStartedPage extends EditorPane {
|
|||
this.editorInput.selectedCategory = categoryID;
|
||||
this.editorInput.selectedStep = stepId;
|
||||
this.currentWalkthrough = ourCategory;
|
||||
this.buildCategorySlide(categoryID);
|
||||
this.buildCategorySlide(categoryID, stepId);
|
||||
this.setSlide('details');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue