Skip to content

fix: use view range for glyph margin widgets - #198733

Merged
Joyce Er (joyceerhl) merged 1 commit into
mainfrom
dev/joyceerhl/nervous-fox
Nov 21, 2023
Merged

fix: use view range for glyph margin widgets#198733
Joyce Er (joyceerhl) merged 1 commit into
mainfrom
dev/joyceerhl/nervous-fox

Conversation

@joyceerhl

Copy link
Copy Markdown
Contributor

Fixes #198674

@joyceerhl Joyce Er (joyceerhl) self-assigned this Nov 21, 2023
@joyceerhl
Joyce Er (joyceerhl) enabled auto-merge (squash) November 21, 2023 06:10
@vscodenpa VS Code Bot (vscodenpa) added this to the November 2023 milestone Nov 21, 2023
@joyceerhl
Joyce Er (joyceerhl) merged commit 266cccf into main Nov 21, 2023
@joyceerhl
Joyce Er (joyceerhl) deleted the dev/joyceerhl/nervous-fox branch November 21, 2023 06:25
Quentin Quaadgras (Splizard) pushed a commit to Splizard/vscode-mobile that referenced this pull request Nov 21, 2023
Comment on lines +1311 to +1323
public modelRangeIsVisible(modelRange: Range): boolean {
const lineCount = this._lines.model.getLineCount();
if (modelRange.startLineNumber < 1 || modelRange.startLineNumber > lineCount) {
// invalid arguments
return false;
}
if (modelRange.endLineNumber < 1 || modelRange.endLineNumber > lineCount) {
// invalid arguments
return false;
}
return true;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method seems unusued?

@hediet

Copy link
Copy Markdown
Member

Thanks for fixing this!

@github-actions github-actions Bot locked and limited conversation to collaborators Jan 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Glyph Widgets Operate On View Positions, Not Model Positions

4 participants