提交 9720e982 编写于 作者: J Johannes Rieken

let F8 only visit errors and warnings, #44141

上级 904bd6e5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册