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

Double check IW is the notebook changing when handling scroll events #155095

Merged

Conversation

rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Jul 13, 2022

This PR fixes #155092

@rchiodo rchiodo requested review from rebornix and roblourens July 13, 2022 18:26
@vscodenpa vscodenpa added this to the July 2022 milestone Jul 13, 2022
Copy link
Member

@rebornix rebornix left a comment

Choose a reason for hiding this comment

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

👏

@rchiodo rchiodo enabled auto-merge (squash) July 13, 2022 18:39
const cell = this.#notebookWidget.value?.getCellByHandle(e.cellHandle);
if (cell && e.changed?.state) {
this.#scrollIfNecessary(cell);
if (isEqual(e.notebook, this.#notebookWidget.value?.viewModel?.notebookDocument.uri)) {
Copy link
Member

Choose a reason for hiding this comment

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

The event also has a helper method affectsNotebook that does the same as this

@rchiodo rchiodo merged commit 06443bc into microsoft:main Jul 13, 2022
Yoyokrazy pushed a commit to Yoyokrazy/vscode that referenced this pull request Jul 13, 2022
andreamah pushed a commit that referenced this pull request Jul 14, 2022
jrieken pushed a commit that referenced this pull request Jul 18, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2022
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.

Interactive window needs to check notebook URI from execution state service
4 participants