From 94b55bd3544cedc7f9ef0d1570672e3d1c05c321 Mon Sep 17 00:00:00 2001 From: Jinbo Wang Date: Tue, 27 Feb 2024 13:31:45 +0800 Subject: [PATCH] Group the Gradle related menus in the file explorer into a submenu labeled 'Gradle' --- extension/package.json | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/extension/package.json b/extension/package.json index 50ed9111e..f80bfe4c6 100644 --- a/extension/package.json +++ b/extension/package.json @@ -354,6 +354,12 @@ "icon": "$(sync)" } ], + "submenus": [ + { + "id": "explorer/gradle", + "label": "Gradle" + } + ], "menus": { "commandPalette": [ { @@ -675,9 +681,9 @@ ], "explorer/context": [ { - "when": "resourceFilename =~ /^((?!settings).)*\\.gradle(\\.kts)?$/", - "command": "gradle.showTasks", - "group": "gradle@0" + "submenu": "explorer/gradle", + "when": "resourceFilename =~ /^.*\\.gradle(\\.kts)?$/", + "group": "1_javaactions@200" } ], "editor/context": [ @@ -696,6 +702,13 @@ "command": "gradle.openBuildFile", "group": "gradle@30" } + ], + "explorer/gradle": [ + { + "when": "resourceFilename =~ /^((?!settings).)*\\.gradle(\\.kts)?$/", + "command": "gradle.showTasks", + "group": "gradle@10" + } ] }, "configuration": {