Skip to content

Make appearedInsideViewport in InlineCompletionsModel reactive (#289944)#289946

Merged
benibenj merged 1 commit into
microsoft:mainfrom
yavanosta:InlineCompletionsModel-appearedInsideViewport-not-reactive
May 13, 2026
Merged

Make appearedInsideViewport in InlineCompletionsModel reactive (#289944)#289946
benibenj merged 1 commit into
microsoft:mainfrom
yavanosta:InlineCompletionsModel-appearedInsideViewport-not-reactive

Conversation

@yavanosta
Copy link
Copy Markdown
Contributor

Makes _appearedInsideViewport reactive.

Fixed #289944

Copilot AI review requested due to automatic review settings January 23, 2026 16:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where users had to press Tab twice to accept an inline completion suggestion that was initially outside the viewport but scrolled into view. The fix makes the _appearedInsideViewport observable properly reactive to viewport changes by passing the reader parameter to isSuggestionInViewport.

Changes:

  • Made _appearedInsideViewport reactive to viewport changes by passing the reader parameter to isSuggestionInViewport

@benibenj
Copy link
Copy Markdown
Contributor

benibenj commented May 8, 2026

Let's give it a try. I won't merge it before monday to make sure it's not in next weeks release but the week after so it's tested on insiders for a couple of days. Please ping me if I forget to merge it

@benibenj benibenj added this to the 1.121.0 milestone May 8, 2026
@benibenj benibenj enabled auto-merge (squash) May 12, 2026 14:31
@yavanosta
Copy link
Copy Markdown
Contributor Author

Please ping me if I forget to merge it

benibenj Ping! :)

@benibenj benibenj closed this May 13, 2026
auto-merge was automatically disabled May 13, 2026 14:03

Pull request was closed

@benibenj benibenj reopened this May 13, 2026
@benibenj benibenj enabled auto-merge (squash) May 13, 2026 14:03
@benibenj
Copy link
Copy Markdown
Contributor

pipeline was stuck. Retrying

@benibenj benibenj merged commit 87241c4 into microsoft:main May 13, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User needs to tab twice to accept completion suggestion if it was originally outside of viewport

5 participants