@@ -19,7 +19,7 @@ import { initializeLogFile, logger } from './log';
1919import { cleanupLombokCache } from "./lombokSupport" ;
2020import { markdownPreviewProvider } from "./markdownPreviewProvider" ;
2121import { OutputInfoCollector } from './outputInfoCollector' ;
22- import { collectJavaExtensions , getBundlesToReload , isContributedPartUpdated } from './plugin' ;
22+ import { collectJavaExtensions , getBundlesToReload , getShortcuts , IJavaShortcut , isContributedPartUpdated } from './plugin' ;
2323import { registerClientProviders } from './providerDispatcher' ;
2424import { initialize as initializeRecommendation } from './recommendation' ;
2525import * as requirements from './requirements' ;
@@ -364,17 +364,13 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
364364 commands . executeCommand ( Commands . SHOW_SERVER_TASK_STATUS , true ) ;
365365 }
366366
367- items . push ( {
368- label : CommandTitle . OPEN_JAVA_SETTINGS ,
369- command : "workbench.action.openSettings" ,
370- args : [ "java" ] ,
371- } , {
372- label : CommandTitle . OPEN_LOGS ,
373- command : Commands . OPEN_LOGS ,
374- } , {
375- label : CommandTitle . CLEAN_WORKSPACE_CACHE ,
376- command : Commands . CLEAN_WORKSPACE
377- } ) ;
367+ items . push ( ...getShortcuts ( ) . map ( ( shortcut : IJavaShortcut ) => {
368+ return {
369+ label : shortcut . title ,
370+ command : shortcut . command ,
371+ args : shortcut . arguments ,
372+ } ;
373+ } ) ) ;
378374
379375 const choice = await window . showQuickPick ( items ) ;
380376 if ( ! choice ) {
0 commit comments