Add clear all, restart, stop, remove actions for history
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
150
package.json
150
package.json
@@ -66,39 +66,65 @@
|
||||
},
|
||||
"viewsWelcome": [
|
||||
{
|
||||
"view": "components",
|
||||
"contents": "Loading components..."
|
||||
},
|
||||
"view": "components",
|
||||
"contents": "Loading components...",
|
||||
"when": "!githubLocalActions:noComponents && workspaceFolderCount > 0"
|
||||
},
|
||||
{
|
||||
"view": "workflows",
|
||||
"contents": "Loading components...",
|
||||
"when": "!githubLocalActions:noWorkflows"
|
||||
},
|
||||
"view": "components",
|
||||
"contents": "No workspace folder opened",
|
||||
"when": "workspaceFolderCount == 0"
|
||||
},
|
||||
{
|
||||
"view": "workflows",
|
||||
"contents": "No workflows found.",
|
||||
"when": "githubLocalActions:noWorkflows"
|
||||
},
|
||||
"view": "components",
|
||||
"contents": "No components found.",
|
||||
"when": "githubLocalActions:noComponents && workspaceFolderCount > 0"
|
||||
},
|
||||
{
|
||||
"view": "history",
|
||||
"contents": "Loading history...",
|
||||
"when": "!githubLocalActions:noHistory"
|
||||
},
|
||||
"view": "workflows",
|
||||
"contents": "Loading components...",
|
||||
"when": "!githubLocalActions:noWorkflows && workspaceFolderCount > 0"
|
||||
},
|
||||
{
|
||||
"view": "history",
|
||||
"contents": "No history found.",
|
||||
"when": "githubLocalActions:noHistory"
|
||||
},
|
||||
"view": "workflows",
|
||||
"contents": "No workspace folder opened",
|
||||
"when": "workspaceFolderCount == 0"
|
||||
},
|
||||
{
|
||||
"view": "settings",
|
||||
"contents": "Loading settings...",
|
||||
"when": "!githubLocalActions:noSettings"
|
||||
},
|
||||
"view": "workflows",
|
||||
"contents": "No workflows found.",
|
||||
"when": "githubLocalActions:noWorkflows && workspaceFolderCount > 0"
|
||||
},
|
||||
{
|
||||
"view": "settings",
|
||||
"contents": "No workflows found.",
|
||||
"when": "githubLocalActions:noSettings"
|
||||
}
|
||||
"view": "history",
|
||||
"contents": "Loading history...",
|
||||
"when": "!githubLocalActions:noHistory && workspaceFolderCount > 0"
|
||||
},
|
||||
{
|
||||
"view": "history",
|
||||
"contents": "No workspace folder opened",
|
||||
"when": "workspaceFolderCount == 0"
|
||||
},
|
||||
{
|
||||
"view": "history",
|
||||
"contents": "No history found.",
|
||||
"when": "githubLocalActions:noHistory && workspaceFolderCount > 0"
|
||||
},
|
||||
{
|
||||
"view": "settings",
|
||||
"contents": "Loading settings...",
|
||||
"when": "!githubLocalActions:noSettings && workspaceFolderCount > 0"
|
||||
},
|
||||
{
|
||||
"view": "settings",
|
||||
"contents": "No workspace folder opened",
|
||||
"when": "workspaceFolderCount == 0"
|
||||
},
|
||||
{
|
||||
"view": "settings",
|
||||
"contents": "No workflows found.",
|
||||
"when": "githubLocalActions:noSettings && workspaceFolderCount > 0"
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
@@ -129,12 +155,14 @@
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.runAllWorkflows",
|
||||
"title": "Run All Workflows",
|
||||
"enablement": "!githubLocalActions:noWorkflows && workspaceFolderCount > 0",
|
||||
"icon": "$(run-all)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.runEvent",
|
||||
"title": "Run Event",
|
||||
"enablement": "!githubLocalActions:noWorkflows && workspaceFolderCount > 0",
|
||||
"icon": "$(symbol-event)"
|
||||
},
|
||||
{
|
||||
@@ -161,12 +189,40 @@
|
||||
"title": "Run Job",
|
||||
"icon": "$(debug-start)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.clearAll",
|
||||
"title": "Clear All",
|
||||
"enablement": "!githubLocalActions:isRunning && !githubLocalActions:noWorkflows && workspaceFolderCount > 0",
|
||||
"icon": "$(clear-all)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.refreshHistory",
|
||||
"title": "Refresh",
|
||||
"icon": "$(refresh)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.restart",
|
||||
"title": "Restart",
|
||||
"enablement": "viewItem =~ /^githubLocalActions.history_(Success|Failed|Cancelled).*/",
|
||||
"icon": "$(debug-restart)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.stop",
|
||||
"title": "Stop",
|
||||
"enablement": "viewItem =~ /^githubLocalActions.history_(Running).*/",
|
||||
"icon": "$(debug-stop)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.remove",
|
||||
"title": "Remove",
|
||||
"enablement": "viewItem =~ /^githubLocalActions.history_(Success|Failed|Cancelled).*/",
|
||||
"icon": "$(close)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.refreshSettings",
|
||||
@@ -216,10 +272,26 @@
|
||||
"command": "githubLocalActions.runJob",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.clearAll",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshHistory",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.restart",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.stop",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.remove",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshSettings",
|
||||
"when": "never"
|
||||
@@ -247,10 +319,15 @@
|
||||
"group": "navigation@2"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshHistory",
|
||||
"command": "githubLocalActions.clearAll",
|
||||
"when": "view == history",
|
||||
"group": "navigation@0"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshHistory",
|
||||
"when": "view == history",
|
||||
"group": "navigation@1"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshSettings",
|
||||
"when": "view == settings",
|
||||
@@ -287,6 +364,21 @@
|
||||
"command": "githubLocalActions.runJob",
|
||||
"when": "view == workflows && viewItem =~ /^githubLocalActions.job.*/",
|
||||
"group": "inline@0"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.restart",
|
||||
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
|
||||
"group": "inline@0"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.stop",
|
||||
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
|
||||
"group": "inline@1"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.remove",
|
||||
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
|
||||
"group": "inline@2"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -346,4 +438,4 @@
|
||||
"webpack": "^5.94.0",
|
||||
"webpack-cli": "^5.1.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user