From 9720e982d6506479a2db07b9c9cc0a2acba2b30a Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 14 Mar 2018 14:42:16 +0100 Subject: [PATCH] let F8 only visit errors and warnings, #44141 --- src/vs/editor/contrib/gotoError/gotoError.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vs/editor/contrib/gotoError/gotoError.ts b/src/vs/editor/contrib/gotoError/gotoError.ts index 8ff4c1e8470..215e98316d5 100644 --- a/src/vs/editor/contrib/gotoError/gotoError.ts +++ b/src/vs/editor/contrib/gotoError/gotoError.ts @@ -273,7 +273,10 @@ class MarkerController implements editorCommon.IEditorContribution { } private _getMarkers(): IMarker[] { - return this._markerService.read({ resource: this._editor.getModel().uri }); + return this._markerService.read({ + resource: this._editor.getModel().uri, + severities: MarkerSeverity.Error | MarkerSeverity.Warning + }); } } @@ -302,7 +305,7 @@ class MarkerNavigationAction extends EditorAction { } // try with the next/prev file - let markers = markerService.read().sort(MarkerNavigationAction.compareMarker); + let markers = markerService.read({ severities: MarkerSeverity.Error | MarkerSeverity.Warning }).sort(MarkerNavigationAction.compareMarker); if (markers.length === 0) { return undefined; } -- GitLab