@@ -51,23 +51,19 @@ import { DebugProgressContribution } from 'vs/workbench/contrib/debug/browser/de
5151import { DebugTitleContribution } from 'vs/workbench/contrib/debug/browser/debugTitle' ;
5252import { Codicon } from 'vs/base/common/codicons' ;
5353import { registerColors } from 'vs/workbench/contrib/debug/browser/debugColors' ;
54- import { debugAdapterRegisteredEmitter } from 'vs/workbench/contrib/debug/browser/debugConfigurationManager' ;
5554import { DebugEditorContribution } from 'vs/workbench/contrib/debug/browser/debugEditorContribution' ;
5655
5756const registry = Registry . as < IWorkbenchActionRegistry > ( WorkbenchActionRegistryExtensions . WorkbenchActions ) ;
57+ const debugCategory = nls . localize ( 'debugCategory' , "Debug" ) ;
58+ const runCategroy = nls . localize ( 'runCategory' , "Run" ) ;
5859// register service
59- debugAdapterRegisteredEmitter . event ( ( ) => {
60- // Register these contributions lazily only once a debug adapter extension has been registered
61- registerWorkbenchContributions ( ) ;
62- registerColors ( ) ;
63- registerCommandsAndActions ( ) ;
64- registerDebugMenu ( ) ;
65- } ) ;
60+ registerWorkbenchContributions ( ) ;
61+ registerColors ( ) ;
62+ registerCommandsAndActions ( ) ;
63+ registerDebugMenu ( ) ;
6664registerEditorActions ( ) ;
6765registerCommands ( ) ;
6866registerDebugPanel ( ) ;
69- const debugCategory = nls . localize ( 'debugCategory' , "Debug" ) ;
70- const runCategroy = nls . localize ( 'runCategory' , "Run" ) ;
7167registry . registerWorkbenchAction ( SyncActionDescriptor . from ( StartAction , { primary : KeyCode . F5 } , CONTEXT_IN_DEBUG_MODE . toNegated ( ) ) , 'Debug: Start Debugging' , debugCategory ) ;
7268registry . registerWorkbenchAction ( SyncActionDescriptor . from ( RunAction , { primary : KeyMod . CtrlCmd | KeyCode . F5 , mac : { primary : KeyMod . WinCtrl | KeyCode . F5 } } ) , 'Run: Start Without Debugging' , runCategroy ) ;
7369
0 commit comments