@@ -14,10 +14,11 @@ import { ProjectRegistry } from "./projectRegistry";
1414import { ProjectTreeProvider } from "./projectTreeProvider" ;
1515import { getReport } from "../util/helperUtil" ;
1616import {
17- COMMAND_TITLES , LIBERTY_SERVER_ENV_PORT_REGEX , isMaven , isGradle ,
17+ LIBERTY_SERVER_ENV_PORT_REGEX , isMaven , isGradle ,
1818 MAVEN_GOAL_DEV , MAVEN_GOAL_DEVC , GRADLE_TASK_DEV , GRADLE_TASK_DEVC ,
19- CMD_OPEN_BUILD_FILE , CMD_START , CMD_STOP , CMD_DEBUG , CMD_CUSTOM ,
20- CMD_START_CONTAINER , CMD_RUN_TESTS ,
19+ CMD_EXPLORER_REFRESH , CMD_OPEN_BUILD_FILE , CMD_START , CMD_STOP , CMD_DEBUG , CMD_CUSTOM ,
20+ CMD_START_CONTAINER , CMD_RUN_TESTS , CMD_OPEN_FAILSAFE_REPORT , CMD_OPEN_SUREFIRE_REPORT ,
21+ CMD_OPEN_GRADLE_TEST_REPORT , CMD_ADD_PROJECT , CMD_REMOVE_PROJECT ,
2122} from "../definitions/constants" ;
2223import { getGradleTestReport } from "../util/gradleUtil" ;
2324import { DashboardData } from "./dashboard" ;
@@ -66,7 +67,23 @@ export async function openBuildFile(libProject?: LibertyProject): Promise<void>
6667 vscode . commands . executeCommand ( "vscode.open" , vscode . Uri . file ( targetProject . getPath ( ) ) ) ;
6768}
6869
69- // List all liberty dev commands, triggerred by hotkey only (Shift+Cmd+L)
70+ // List all liberty dev commands, triggered by hotkey (Shift+Alt+L)
71+ const COMMAND_TITLES = new Map < string , string > ( [
72+ [ localize ( "hotkey.commands.title.refresh" ) , CMD_EXPLORER_REFRESH ] ,
73+ [ localize ( "hotkey.commands.title.start" ) , CMD_START ] ,
74+ [ localize ( "hotkey.commands.title.start.custom" ) , CMD_CUSTOM ] ,
75+ [ localize ( "hotkey.commands.title.start.in.container" ) , CMD_START_CONTAINER ] ,
76+ [ localize ( "hotkey.commands.title.debug" ) , CMD_DEBUG ] ,
77+ [ localize ( "hotkey.commands.title.stop" ) , CMD_STOP ] ,
78+ [ localize ( "hotkey.commands.title.run.tests" ) , CMD_RUN_TESTS ] ,
79+ [ localize ( "hotkey.commands.title.view.integration.test.report" ) , CMD_OPEN_FAILSAFE_REPORT ] ,
80+ [ localize ( "hotkey.commands.title.view.unit.test.report" ) , CMD_OPEN_SUREFIRE_REPORT ] ,
81+ [ localize ( "hotkey.commands.title.view.test.report" ) , CMD_OPEN_GRADLE_TEST_REPORT ] ,
82+ [ localize ( "hotkey.commands.title.add.project" ) , CMD_ADD_PROJECT ] ,
83+ [ localize ( "hotkey.commands.title.remove.project" ) , CMD_REMOVE_PROJECT ] ,
84+ [ localize ( "hotkey.commands.title.open.build.file" ) , CMD_OPEN_BUILD_FILE ] ,
85+ ] ) ;
86+
7087export async function listAllCommands ( ) : Promise < void > {
7188 const libertyCommands = Array . from ( COMMAND_TITLES . keys ( ) ) ;
7289 vscode . window . showQuickPick ( libertyCommands ) . then ( selection => {
0 commit comments