Add actions to show and hide secrets

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-11-18 19:01:10 -05:00
parent af0b2edb4a
commit fbd1371d70
6 changed files with 119 additions and 27 deletions

View File

@@ -236,6 +236,18 @@
"title": "Refresh",
"icon": "$(refresh)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.show",
"title": "Show",
"icon": "$(eye)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.hide",
"title": "Hide",
"icon": "$(eye-closed)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.editSetting",
@@ -330,6 +342,14 @@
"command": "githubLocalActions.refreshSettings",
"when": "never"
},
{
"command": "githubLocalActions.show",
"when": "never"
},
{
"command": "githubLocalActions.hide",
"when": "never"
},
{
"command": "githubLocalActions.editSetting",
"when": "never"
@@ -461,10 +481,20 @@
"when": "view == history && viewItem =~ /^githubLocalActions.history.*/",
"group": "inline@3"
},
{
"command": "githubLocalActions.show",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_hide.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.hide",
"when": "view == settings && viewItem =~ /^githubLocalActions.secret(?!s)_show.*/",
"group": "inline@0"
},
{
"command": "githubLocalActions.editSetting",
"when": "view == settings && viewItem =~ /^githubLocalActions.(secret|variable|input|runner)(?!s).*/",
"group": "inline@0"
"group": "inline@1"
}
]
},