Skip to content

Commit

Permalink
fixes #50864
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed May 31, 2018
1 parent 3989e2d commit 50acfce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/workbench/parts/debug/browser/debugEditorActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ class GoToBreakpointAction extends EditorAction {
: allEnabledBreakpoints.filter(bp => bp.uri.toString() < currentUri.toString()).pop();
}

//Move to first possible breakpoint
if (!moveBreakpoint) {
moveBreakpoint = allEnabledBreakpoints[0];
//Move to first or last possible breakpoint
if (!moveBreakpoint && allEnabledBreakpoints.length) {
moveBreakpoint = this.isNext ? allEnabledBreakpoints[0] : allEnabledBreakpoints[allEnabledBreakpoints.length - 1];
}

if (moveBreakpoint) {
Expand Down

0 comments on commit 50acfce

Please sign in to comment.