Add check for permission denied in Linux and add action to fix permissions

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-11-24 18:00:49 -05:00
parent a61ceb8857
commit 195c296891
5 changed files with 86 additions and 10 deletions

View File

@@ -156,6 +156,12 @@
"title": "Start",
"icon": "$(debug-start)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.fixPermissions",
"title": "Fix Permissions",
"icon": "$(unlock)"
},
{
"category": "GitHub Local Actions",
"command": "githubLocalActions.runAllWorkflows",
@@ -366,6 +372,10 @@
"command": "githubLocalActions.startComponent",
"when": "never"
},
{
"command": "githubLocalActions.fixPermissions",
"when": "never"
},
{
"command": "githubLocalActions.runAllWorkflows",
"when": "never"
@@ -555,6 +565,11 @@
"when": "view == components && viewItem =~ /^githubLocalActions.component_Not Running.*/",
"group": "inline@1"
},
{
"command": "githubLocalActions.fixPermissions",
"when": "view == components && viewItem =~ /^githubLocalActions.component_Invalid Permissions.*/",
"group": "inline@1"
},
{
"command": "githubLocalActions.runAllWorkflows",
"when": "view == workflows && viewItem =~ /^githubLocalActions.workspaceFolderWorkflows.*/ && workspaceFolderCount > 1",