@@ -17,7 +17,10 @@ import { ToggleViewletAction, Extensions as ViewletExtensions, ViewletRegistry,
1717import { TogglePanelAction , Extensions as PanelExtensions , PanelRegistry , PanelDescriptor } from 'vs/workbench/browser/panel' ;
1818import { VariablesView , WatchExpressionsView , CallStackView , BreakpointsView } from 'vs/workbench/parts/debug/electron-browser/debugViews' ;
1919import { Extensions as WorkbenchExtensions , IWorkbenchContributionsRegistry } from 'vs/workbench/common/contributions' ;
20- import { IDebugService , VIEWLET_ID , REPL_ID , CONTEXT_NOT_IN_DEBUG_MODE , CONTEXT_IN_DEBUG_MODE , INTERNAL_CONSOLE_OPTIONS_SCHEMA , CONTEXT_DEBUG_STATE } from 'vs/workbench/parts/debug/common/debug' ;
20+ import {
21+ IDebugService , VIEWLET_ID , REPL_ID , CONTEXT_NOT_IN_DEBUG_MODE , CONTEXT_IN_DEBUG_MODE , INTERNAL_CONSOLE_OPTIONS_SCHEMA ,
22+ CONTEXT_DEBUG_STATE , VARIABLES_VIEW_ID , CALLSTACK_VIEW_ID , WATCH_VIEW_ID , BREAKPOINTS_VIEW_ID
23+ } from 'vs/workbench/parts/debug/common/debug' ;
2124import { IPartService } from 'vs/workbench/services/part/common/partService' ;
2225import { IPanelService } from 'vs/workbench/services/panel/common/panelService' ;
2326import { DebugEditorModelManager } from 'vs/workbench/parts/debug/browser/debugEditorModelManager' ;
@@ -38,7 +41,7 @@ import { ViewLocation, ViewsRegistry } from 'vs/workbench/browser/parts/views/vi
3841import { isMacintosh } from 'vs/base/common/platform' ;
3942import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey' ;
4043import URI from 'vs/base/common/uri' ;
41- import { DebugViewlet } from 'vs/workbench/parts/debug/browser/debugViewlet' ;
44+ import { DebugViewlet , FocusVariablesViewAction , FocusBreakpointsViewAction , FocusCallStackViewAction , FocusWatchViewAction } from 'vs/workbench/parts/debug/browser/debugViewlet' ;
4245import { Repl } from 'vs/workbench/parts/debug/electron-browser/repl' ;
4346import { DebugQuickOpenHandler } from 'vs/workbench/parts/debug/browser/debugQuickOpen' ;
4447
@@ -98,10 +101,10 @@ Registry.as<PanelRegistry>(PanelExtensions.Panels).registerPanel(new PanelDescri
98101Registry . as < PanelRegistry > ( PanelExtensions . Panels ) . setDefaultPanelId ( REPL_ID ) ;
99102
100103// Register default debug views
101- ViewsRegistry . registerViews ( [ { id : 'workbench.debug.variablesView' , name : nls . localize ( 'variables' , "Variables" ) , ctor : VariablesView , order : 10 , size : 40 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
102- ViewsRegistry . registerViews ( [ { id : 'workbench.debug.watchExpressionsView' , name : nls . localize ( 'watch' , "Watch" ) , ctor : WatchExpressionsView , order : 20 , size : 10 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
103- ViewsRegistry . registerViews ( [ { id : 'workbench.debug.callStackView' , name : nls . localize ( 'callStack' , "Call Stack" ) , ctor : CallStackView , order : 30 , size : 30 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
104- ViewsRegistry . registerViews ( [ { id : 'workbench.debug.breakPointsView' , name : nls . localize ( 'breakpoints' , "Breakpoints" ) , ctor : BreakpointsView , order : 40 , size : 20 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
104+ ViewsRegistry . registerViews ( [ { id : VARIABLES_VIEW_ID , name : nls . localize ( 'variables' , "Variables" ) , ctor : VariablesView , order : 10 , size : 40 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
105+ ViewsRegistry . registerViews ( [ { id : WATCH_VIEW_ID , name : nls . localize ( 'watch' , "Watch" ) , ctor : WatchExpressionsView , order : 20 , size : 10 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
106+ ViewsRegistry . registerViews ( [ { id : CALLSTACK_VIEW_ID , name : nls . localize ( 'callStack' , "Call Stack" ) , ctor : CallStackView , order : 30 , size : 30 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
107+ ViewsRegistry . registerViews ( [ { id : BREAKPOINTS_VIEW_ID , name : nls . localize ( 'breakpoints' , "Breakpoints" ) , ctor : BreakpointsView , order : 40 , size : 20 , location : ViewLocation . Debug , canToggleVisibility : true } ] ) ;
105108
106109// register action to open viewlet
107110const registry = Registry . as < IWorkbenchActionRegistry > ( WorkbenchActionRegistryExtensions . WorkbenchActions ) ;
@@ -134,6 +137,11 @@ registry.registerWorkbenchAction(new SyncActionDescriptor(DisableAllBreakpointsA
134137registry . registerWorkbenchAction ( new SyncActionDescriptor ( ClearReplAction , ClearReplAction . ID , ClearReplAction . LABEL ) , 'Debug: Clear Console' , debugCategory ) ;
135138registry . registerWorkbenchAction ( new SyncActionDescriptor ( FocusReplAction , FocusReplAction . ID , FocusReplAction . LABEL ) , 'Debug: Focus Debug Console' , debugCategory ) ;
136139registry . registerWorkbenchAction ( new SyncActionDescriptor ( SelectAndStartAction , SelectAndStartAction . ID , SelectAndStartAction . LABEL ) , 'Debug: Select and Start Debugging' , debugCategory ) ;
140+ registry . registerWorkbenchAction ( new SyncActionDescriptor ( FocusVariablesViewAction , FocusVariablesViewAction . ID , FocusVariablesViewAction . LABEL ) , 'Debug: Focus Variables' , debugCategory ) ;
141+ registry . registerWorkbenchAction ( new SyncActionDescriptor ( FocusWatchViewAction , FocusWatchViewAction . ID , FocusWatchViewAction . LABEL ) , 'Debug: Focus Watch' , debugCategory ) ;
142+ registry . registerWorkbenchAction ( new SyncActionDescriptor ( FocusCallStackViewAction , FocusCallStackViewAction . ID , FocusCallStackViewAction . LABEL ) , 'Debug: Focus CallStack' , debugCategory ) ;
143+ registry . registerWorkbenchAction ( new SyncActionDescriptor ( FocusBreakpointsViewAction , FocusBreakpointsViewAction . ID , FocusBreakpointsViewAction . LABEL ) , 'Debug: Focus Breakpoints' , debugCategory ) ;
144+
137145
138146// Register Quick Open
139147( < IQuickOpenRegistry > Registry . as ( QuickOpenExtensions . Quickopen ) ) . registerQuickOpenHandler (
0 commit comments