Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add open walkthrough tree item to help view #321

Merged
merged 3 commits into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`));
bwateratmsft marked this conversation as resolved.
Show resolved Hide resolved

// 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