Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use view range for glyph margin widgets #198733

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Conversation

joyceerhl
Copy link
Contributor

Fixes #198674

@joyceerhl joyceerhl self-assigned this Nov 21, 2023
@joyceerhl joyceerhl enabled auto-merge (squash) November 21, 2023 06:10
@VSCodeTriageBot VSCodeTriageBot added this to the November 2023 milestone Nov 21, 2023
@joyceerhl joyceerhl merged commit 266cccf into main Nov 21, 2023
7 checks passed
@joyceerhl joyceerhl deleted the dev/joyceerhl/nervous-fox branch November 21, 2023 06:25
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
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
Member

hediet commented Nov 21, 2023

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