Skip to content

Commit ffd94b1

Browse files
committed
Update workspace context menu visibility for file and folder operations
1 parent 6e07c7d commit ffd94b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/editor/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,22 +704,22 @@
704704
},
705705
{
706706
"command": "codeWebChat.newFile",
707-
"when": "view == codeWebChatViewWorkspace && viewItem == directory",
707+
"when": "view == codeWebChatViewWorkspace && (viewItem == directory || viewItem == workspaceRoot)",
708708
"group": "1_creation@1"
709709
},
710710
{
711711
"command": "codeWebChat.newFolder",
712-
"when": "view == codeWebChatViewWorkspace && viewItem == directory",
712+
"when": "view == codeWebChatViewWorkspace && (viewItem == directory || viewItem == workspaceRoot)",
713713
"group": "1_creation@2"
714714
},
715715
{
716716
"command": "codeWebChat.rename",
717-
"when": "view == codeWebChatViewWorkspace",
717+
"when": "view == codeWebChatViewWorkspace && viewItem != workspaceRoot",
718718
"group": "1_creation@3"
719719
},
720720
{
721721
"command": "codeWebChat.delete",
722-
"when": "view == codeWebChatViewWorkspace",
722+
"when": "view == codeWebChatViewWorkspace && viewItem != workspaceRoot",
723723
"group": "1_creation@4"
724724
},
725725
{

0 commit comments

Comments
 (0)