@@ -8,7 +8,7 @@ import { TPromise } from 'vs/base/common/winjs.base';
88import { KeyMod , KeyChord , KeyCode } from 'vs/base/common/keyCodes' ;
99import { Range } from 'vs/editor/common/core/range' ;
1010import { EditorContextKeys } from 'vs/editor/common/editorContextKeys' ;
11- import { ServicesAccessor , registerEditorAction , EditorAction } from 'vs/editor/browser/editorExtensions' ;
11+ import { ServicesAccessor , registerEditorAction , EditorAction , IActionOptions } from 'vs/editor/browser/editorExtensions' ;
1212import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey' ;
1313import { IDebugService , CONTEXT_IN_DEBUG_MODE , CONTEXT_NOT_IN_DEBUG_REPL , CONTEXT_DEBUG_STATE , State , REPL_ID , VIEWLET_ID , IDebugEditorContribution , EDITOR_CONTRIBUTION_ID , BreakpointWidgetContext , IBreakpoint } from 'vs/workbench/parts/debug/common/debug' ;
1414import { IPanelService } from 'vs/workbench/services/panel/common/panelService' ;
@@ -212,11 +212,11 @@ class ShowDebugHoverAction extends EditorAction {
212212}
213213
214214class GoToBreakpointAction extends EditorAction {
215- constructor ( private isNext , opts ) {
215+ constructor ( private isNext : boolean , opts : IActionOptions ) {
216216 super ( opts ) ;
217217 }
218218
219- public run ( accessor : ServicesAccessor , editor : ICodeEditor , args : any ) : void | TPromise < void , any > {
219+ public run ( accessor : ServicesAccessor , editor : ICodeEditor , args : any ) : TPromise < any > {
220220 const debugService = accessor . get ( IDebugService ) ;
221221 const editorService = accessor . get ( IEditorService ) ;
222222 const currentUri = editor . getModel ( ) . uri ;
@@ -244,8 +244,9 @@ class GoToBreakpointAction extends EditorAction {
244244 }
245245
246246 if ( moveBreakpoint ) {
247- openBreakpointSource ( moveBreakpoint , false , true , debugService , editorService ) ;
247+ return openBreakpointSource ( moveBreakpoint , false , true , debugService , editorService ) ;
248248 }
249+
249250 return TPromise . as ( null ) ;
250251 }
251252}
0 commit comments