init settings view and refresh action

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-09-26 20:19:24 -04:00
parent 003d2c39b4
commit 800420307d
8 changed files with 170 additions and 10 deletions

View File

@@ -26,7 +26,9 @@
"engines": {
"vscode": "^1.93.0"
},
"activationEvents": [],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
@@ -50,11 +52,6 @@
"name": "Workflows",
"icon": "$(remote-explorer)"
},
{
"id": "events",
"name": "Events",
"icon": "$(rocket)"
},
{
"id": "settings",
"name": "Settings",
@@ -62,7 +59,59 @@
}
]
},
"commands": [],
"commands": [
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.refreshComponents",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.refreshWorkflows",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.refreshSettings",
"title": "Refresh",
"icon": "$(refresh)"
}
],
"menus": {
"commandPalette": [
{
"command": "githubLocalActions.refreshComponents",
"when": "never"
},
{
"command": "githubLocalActions.refreshWorkflows",
"when": "never"
},
{
"command": "githubLocalActions.refreshSettings",
"when": "never"
}
],
"view/title": [
{
"command": "githubLocalActions.refreshComponents",
"when": "view == components",
"group": "navigation@0"
},
{
"command": "githubLocalActions.refreshWorkflows",
"when": "view == workflows",
"group": "navigation@0"
},
{
"command": "githubLocalActions.refreshSettings",
"when": "view == settings",
"group": "navigation@0"
}
]
},
"colors": [
{
"id": "GitHubLocalActions.enabled",
@@ -118,4 +167,4 @@
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
}
}
}