Add view output action

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-10-17 21:52:17 -04:00
parent f215c03697
commit b274529707
3 changed files with 34 additions and 3 deletions

View File

@@ -202,6 +202,13 @@
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.viewOutput",
"title": "View Output",
"enablement": "viewItem =~ /^githubLocalActions.history_(Success|Failed|Cancelled).*/",
"icon": "$(book)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.restart",
@@ -280,6 +287,10 @@
"command": "githubLocalActions.refreshHistory",
"when": "never"
},
{
"command": "githubLocalActions.viewOutput",
"when": "never"
},
{
"command": "githubLocalActions.restart",
"when": "never"
@@ -366,19 +377,24 @@
"group": "inline@0"
},
{
"command": "githubLocalActions.restart",
"command": "githubLocalActions.viewOutput",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.stop",
"command": "githubLocalActions.restart",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@1"
},
{
"command": "githubLocalActions.remove",
"command": "githubLocalActions.stop",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@2"
},
{
"command": "githubLocalActions.remove",
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@3"
}
]
},