Skip to content

Commit b8a1612

Browse files
committed
go to next / previosu breakpoint minor polish
1 parent 9bada78 commit b8a1612

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/vs/workbench/parts/debug/browser/debugEditorActions.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { TPromise } from 'vs/base/common/winjs.base';
88
import { KeyMod, KeyChord, KeyCode } from 'vs/base/common/keyCodes';
99
import { Range } from 'vs/editor/common/core/range';
1010
import { 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';
1212
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
1313
import { 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';
1414
import { IPanelService } from 'vs/workbench/services/panel/common/panelService';
@@ -212,11 +212,11 @@ class ShowDebugHoverAction extends EditorAction {
212212
}
213213

214214
class 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

Comments
 (0)