Skip to content

Commit 1ce8412

Browse files
Add open walkthrough tree item to help view (#321)
1 parent fbf4593 commit 1ce8412

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-azureresourcegroups",
33
"displayName": "Azure Resources",
44
"description": "%azureResourceGroups.description%",
5-
"version": "0.5.4-alpha.4",
5+
"version": "0.5.4-alpha.5",
66
"publisher": "ms-azuretools",
77
"icon": "resources/resourceGroup.png",
88
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",

src/commands/registerCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function registerCommands(): void {
4040
registerCommand('ms-azuretools.loadMore', async (context: IActionContext, node: AzExtTreeItem) => await ext.helpTree.loadMore(node, context));
4141
registerCommand('ms-azuretools.reportIssue', reportIssue);
4242
registerCommand('ms-azuretools.reviewIssues', reviewIssues);
43+
registerCommand('ms-azuretools.openWalkthrough', () => commands.executeCommand('workbench.action.openWalkthrough', `ms-azuretools.vscode-azureresourcegroups#azure-get-started`));
4344

4445
// Suppress "Report an Issue" button for all errors in favor of the command
4546
registerErrorHandler(c => c.errorHandling.suppressReportIssue = true);

src/tree/HelpTreeItem.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ export class HelpTreeItem extends AzExtParentTreeItem {
2222
commandId: 'ms-azuretools.getStarted',
2323
iconPath: new ThemeIcon('star-empty')
2424
});
25+
const openWalkthroughTI: AzExtTreeItem = new GenericTreeItem(this, {
26+
label: localize('openWalkthrough', 'Open Azure Extensions Walkthrough'),
27+
contextValue: 'openWalkthrough',
28+
commandId: 'ms-azuretools.openWalkthrough',
29+
iconPath: new ThemeIcon('extensions')
30+
});
2531
const reportIssueTI: AzExtTreeItem = new GenericTreeItem(this, {
2632
label: localize('reportIssue', 'Report Issue'),
2733
contextValue: 'reportIssue',
@@ -34,7 +40,7 @@ export class HelpTreeItem extends AzExtParentTreeItem {
3440
commandId: 'ms-azuretools.reviewIssues',
3541
iconPath: new ThemeIcon('issues')
3642
});
37-
return [getStartedTI, reviewIssuesTI, reportIssueTI];
43+
return [getStartedTI, openWalkthroughTI, reviewIssuesTI, reportIssueTI];
3844
}
3945

4046
public hasMoreChildrenImpl(): boolean {

0 commit comments

Comments
 (0)