We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9145a2 commit 30625adCopy full SHA for 30625ad
src/vs/editor/contrib/hover/browser/markerHoverParticipant.ts
@@ -71,7 +71,11 @@ export class MarkerHoverParticipant implements IEditorHoverParticipant<MarkerHov
71
}
72
73
const model = this._editor.getModel();
74
- const lineNumber = anchor.range.startLineNumber;
+ const anchorRange = anchor.range;
75
+ if (!model.isValidRange(anchor.range)) {
76
+ return [];
77
+ }
78
+ const lineNumber = anchorRange.startLineNumber;
79
const maxColumn = model.getLineMaxColumn(lineNumber);
80
const result: MarkerHover[] = [];
81
for (const d of lineDecorations) {
0 commit comments