diff --git a/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/commands/SpringQuickAccessProvider.java b/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/commands/SpringQuickAccessProvider.java index 6de236694..393880ba7 100644 --- a/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/commands/SpringQuickAccessProvider.java +++ b/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/commands/SpringQuickAccessProvider.java @@ -36,7 +36,7 @@ public class SpringQuickAccessProvider implements IQuickAccessComputer, IQuickAc final private QuickAccessElement reloadRecipesAction = createForNoArgsLsCommand( "sts/rewrite/reload", - "Reload OpenRewrite Recipes, Code Actions, Problem and Quick Fix Descriptors", + "Reload OpenRewrite Recipes", "Failed to reload OpenRewrite Recipes!" ); diff --git a/vscode-extensions/vscode-spring-boot/lib/rewrite.ts b/vscode-extensions/vscode-spring-boot/lib/rewrite.ts index 8dc3ac208..a05ec30a8 100644 --- a/vscode-extensions/vscode-spring-boot/lib/rewrite.ts +++ b/vscode-extensions/vscode-spring-boot/lib/rewrite.ts @@ -82,7 +82,10 @@ const ROOT_RECIPES_BUTTON: VSCode.QuickInputButton = { iconPath: new VSCode.ThemeIcon('home'), tooltip: 'Root Recipes' } - +const PARENT_RECIPE_BUTTON: VSCode.QuickInputButton = { + iconPath: new VSCode.ThemeIcon('arrow-up'), + tooltip: 'Parent Recipe' +} const SUB_RECIPES_BUTTON: VSCode.QuickInputButton = { iconPath: new VSCode.ThemeIcon('type-hierarchy'), tooltip: 'Sub-Recipes' @@ -150,7 +153,7 @@ function showCurrentPathQuickPick(itemsPromise: Thenable, }); quickPick.items = currentItems; if (itemsPath.length) { - quickPick.buttons = [ ROOT_RECIPES_BUTTON ]; + quickPick.buttons = [ PARENT_RECIPE_BUTTON, ROOT_RECIPES_BUTTON ]; } quickPick.selectedItems = currentItems.filter(i => i.selected); quickPick.onDidTriggerItemButton(e => { @@ -165,6 +168,10 @@ function showCurrentPathQuickPick(itemsPromise: Thenable, currentItems.forEach(i => i.selected = quickPick.selectedItems.includes(i)); itemsPath.splice(0, itemsPath.length); showCurrentPathQuickPick(Promise.resolve(items), itemsPath).then(resolve, reject); + } else if (b === PARENT_RECIPE_BUTTON) { + currentItems.forEach(i => i.selected = quickPick.selectedItems.includes(i)); + itemsPath.pop(); + showCurrentPathQuickPick(Promise.resolve(items), itemsPath).then(resolve, reject); } }); quickPick.onDidAccept(() => { diff --git a/vscode-extensions/vscode-spring-boot/package.json b/vscode-extensions/vscode-spring-boot/package.json index 98f0e6dcd..8f0c9a7d8 100644 --- a/vscode-extensions/vscode-spring-boot/package.json +++ b/vscode-extensions/vscode-spring-boot/package.json @@ -119,7 +119,7 @@ }, { "command": "vscode-spring-boot.rewrite.reload", - "title": "Reload OpenRewrite Recipes, Code Actions, Problem and Quick Fix Descriptors", + "title": "Reload OpenRewrite Recipes", "category": "Spring Boot" }, { @@ -264,7 +264,7 @@ "items": { "type": "string" }, - "description": "JAR and YAML files to scan for recipes, code actions, problem and quick fix descriptors" + "description": "JAR and YAML files to scan for recipes" } } },