Skip to content

fix: use view range for glyph margin widgets#198733

Merged
joyceerhl merged 1 commit intomainfrom
dev/joyceerhl/nervous-fox
Nov 21, 2023
Merged

fix: use view range for glyph margin widgets#198733
joyceerhl merged 1 commit intomainfrom
dev/joyceerhl/nervous-fox

Conversation

@joyceerhl
Copy link
Copy Markdown
Contributor

Fixes #198674

@joyceerhl joyceerhl self-assigned this Nov 21, 2023
@joyceerhl joyceerhl enabled auto-merge (squash) November 21, 2023 06:10
@vscodenpa vscodenpa added this to the November 2023 milestone Nov 21, 2023
@joyceerhl joyceerhl merged commit 266cccf into main Nov 21, 2023
@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
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

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