Skip to content

Commit

Permalink
Add open walkthrough tree item to help view (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger authored Jul 6, 2022
1 parent fbf4593 commit 1ce8412
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-azureresourcegroups",
"displayName": "Azure Resources",
"description": "%azureResourceGroups.description%",
"version": "0.5.4-alpha.4",
"version": "0.5.4-alpha.5",
"publisher": "ms-azuretools",
"icon": "resources/resourceGroup.png",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
Expand Down
1 change: 1 addition & 0 deletions src/commands/registerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function registerCommands(): void {
registerCommand('ms-azuretools.loadMore', async (context: IActionContext, node: AzExtTreeItem) => await ext.helpTree.loadMore(node, context));
registerCommand('ms-azuretools.reportIssue', reportIssue);
registerCommand('ms-azuretools.reviewIssues', reviewIssues);
registerCommand('ms-azuretools.openWalkthrough', () => commands.executeCommand('workbench.action.openWalkthrough', `ms-azuretools.vscode-azureresourcegroups#azure-get-started`));

// Suppress "Report an Issue" button for all errors in favor of the command
registerErrorHandler(c => c.errorHandling.suppressReportIssue = true);
Expand Down
8 changes: 7 additions & 1 deletion src/tree/HelpTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export class HelpTreeItem extends AzExtParentTreeItem {
commandId: 'ms-azuretools.getStarted',
iconPath: new ThemeIcon('star-empty')
});
const openWalkthroughTI: AzExtTreeItem = new GenericTreeItem(this, {
label: localize('openWalkthrough', 'Open Azure Extensions Walkthrough'),
contextValue: 'openWalkthrough',
commandId: 'ms-azuretools.openWalkthrough',
iconPath: new ThemeIcon('extensions')
});
const reportIssueTI: AzExtTreeItem = new GenericTreeItem(this, {
label: localize('reportIssue', 'Report Issue'),
contextValue: 'reportIssue',
Expand All @@ -34,7 +40,7 @@ export class HelpTreeItem extends AzExtParentTreeItem {
commandId: 'ms-azuretools.reviewIssues',
iconPath: new ThemeIcon('issues')
});
return [getStartedTI, reviewIssuesTI, reportIssueTI];
return [getStartedTI, openWalkthroughTI, reviewIssuesTI, reportIssueTI];
}

public hasMoreChildrenImpl(): boolean {
Expand Down

0 comments on commit 1ce8412

Please sign in to comment.