Enable showCollapseAll and rename actions

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-11-16 22:52:11 -05:00
parent 99cd612f00
commit 319520c1d2
2 changed files with 14 additions and 14 deletions

View File

@@ -249,15 +249,15 @@
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.helpAndSupport",
"title": "Help and Support"
"command": "githubLocalActions.reportAnIssue",
"title": "Report an Issue"
}
],
"submenus": [
{
"id": "githubLocalActions.moreActions",
"label": "More Actions...",
"icon": "$(ellipsis)"
"id": "githubLocalActions.helpAndSupport",
"label": "Help and Support",
"icon": "$(question)"
}
],
"menus": {
@@ -339,7 +339,7 @@
"when": "never"
},
{
"command": "githubLocalActions.helpAndSupport",
"command": "githubLocalActions.reportAnIssue",
"when": "never"
}
],
@@ -380,18 +380,18 @@
"group": "navigation@0"
},
{
"submenu": "githubLocalActions.moreActions",
"submenu": "githubLocalActions.helpAndSupport",
"when": "view =~ /^(components|workflows|history|settings)$/",
"group": "navigation@99"
}
],
"githubLocalActions.moreActions": [
"githubLocalActions.helpAndSupport": [
{
"command": "githubLocalActions.viewDocumentation",
"group": "0_more@0"
},
{
"command": "githubLocalActions.helpAndSupport",
"command": "githubLocalActions.reportAnIssue",
"group": "0_more@1"
}
],

View File

@@ -23,13 +23,13 @@ export function activate(context: vscode.ExtensionContext) {
// Create tree views
const decorationProvider = new DecorationProvider();
componentsTreeDataProvider = new ComponentsTreeDataProvider(context);
const componentsTreeView = window.createTreeView(ComponentsTreeDataProvider.VIEW_ID, { treeDataProvider: componentsTreeDataProvider });
const componentsTreeView = window.createTreeView(ComponentsTreeDataProvider.VIEW_ID, { treeDataProvider: componentsTreeDataProvider, showCollapseAll: true });
workflowsTreeDataProvider = new WorkflowsTreeDataProvider(context);
const workflowsTreeView = window.createTreeView(WorkflowsTreeDataProvider.VIEW_ID, { treeDataProvider: workflowsTreeDataProvider });
const workflowsTreeView = window.createTreeView(WorkflowsTreeDataProvider.VIEW_ID, { treeDataProvider: workflowsTreeDataProvider, showCollapseAll: true });
historyTreeDataProvider = new HistoryTreeDataProvider(context);
const historyTreeView = window.createTreeView(HistoryTreeDataProvider.VIEW_ID, { treeDataProvider: historyTreeDataProvider });
const historyTreeView = window.createTreeView(HistoryTreeDataProvider.VIEW_ID, { treeDataProvider: historyTreeDataProvider, showCollapseAll: true });
settingsTreeDataProvider = new SettingsTreeDataProvider(context);
const settingsTreeView = window.createTreeView(SettingsTreeDataProvider.VIEW_ID, { treeDataProvider: settingsTreeDataProvider });
const settingsTreeView = window.createTreeView(SettingsTreeDataProvider.VIEW_ID, { treeDataProvider: settingsTreeDataProvider, showCollapseAll: true });
settingsTreeView.onDidChangeCheckboxState(async (event: TreeCheckboxChangeEvent<GithubLocalActionsTreeItem>) => {
await settingsTreeDataProvider.onDidChangeCheckboxState(event as TreeCheckboxChangeEvent<SettingTreeItem>);
});
@@ -59,7 +59,7 @@ export function activate(context: vscode.ExtensionContext) {
commands.registerCommand('githubLocalActions.viewDocumentation', async () => {
await env.openExternal(Uri.parse('https://nektosact.com'));
}),
commands.registerCommand('githubLocalActions.helpAndSupport', async () => {
commands.registerCommand('githubLocalActions.reportAnIssue', async () => {
await env.openExternal(Uri.parse('https://github.com/SanjulaGanepola/github-local-actions/issues'));
}),
);