Skip to content

Make appearedInsideViewport in InlineCompletionsModel reactive (#289944) - #289946

Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit into
microsoft:mainfrom
yavanosta:InlineCompletionsModel-appearedInsideViewport-not-reactive
May 13, 2026
Merged

Benjamin Christopher Simmonds (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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

@yavanosta
Dmitry Guketlev (yavanosta) force-pushed the InlineCompletionsModel-appearedInsideViewport-not-reactive branch from d0cd0d7 to 98e320c Compare May 7, 2026 12:21
@benibenj

Copy link
Copy Markdown
Contributor

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

@yavanosta

Copy link
Copy Markdown
Contributor Author

Please ping me if I forget to merge it

benibenj Ping! :)

auto-merge was automatically disabled May 13, 2026 14:03

Pull request was closed

@benibenj

Copy link
Copy Markdown
Contributor

pipeline was stuck. Retrying

@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 87241c4 into microsoft:main May 13, 2026
48 checks passed
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jun 27, 2026
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.

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

5 participants