diff --git a/src/vs/editor/contrib/hover/browser/markerHoverParticipant.ts b/src/vs/editor/contrib/hover/browser/markerHoverParticipant.ts index d56720dcebd..ffdc5ccf50f 100644 --- a/src/vs/editor/contrib/hover/browser/markerHoverParticipant.ts +++ b/src/vs/editor/contrib/hover/browser/markerHoverParticipant.ts @@ -170,15 +170,18 @@ export class MarkerHoverParticipant implements IEditorHoverParticipant { - context.hide(); - MarkerController.get(this._editor)?.showAtMarker(markerHover.marker); - this._editor.focus(); - } - }); + const markerController = MarkerController.get(this._editor); + if (markerController) { + context.statusBar.addAction({ + label: nls.localize('view problem', "View Problem"), + commandId: NextMarkerAction.ID, + run: () => { + context.hide(); + markerController.showAtMarker(markerHover.marker); + this._editor.focus(); + } + }); + } } if (!this._editor.getOption(EditorOption.readOnly)) {