Skip to content

Conversation

@ssigwart
Copy link
Contributor

Fixes #155855.

This fixes the search editor title not updating until you focus on a different editor in the same editor group. It looks like this was introduced by a fix for #145749.

To test, open a search editor and change the search text. The title should update.

ProKashif
ProKashif previously approved these changes Jul 23, 2022
Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

Is there also an issue at line 174-177?

@roblourens roblourens added this to the August 2022 milestone Aug 4, 2022
@roblourens
Copy link
Member

Thanks for the PR, good catch

@ssigwart
Copy link
Contributor Author

ssigwart commented Aug 4, 2022

Is there also an issue at line 174-177?

Yeah, that looks wrong too. I'm not as clear on what resolveModels does, but in its current start it seems to never execute. I updated it to share a private variable with the onConfigDidUpdate version so that if the label changes in either one, _onDidChangeLabel will fire.

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

Looks great to me, thank you!

@roblourens roblourens enabled auto-merge (squash) August 4, 2022 17:54
@roblourens roblourens merged commit cd9d43b into microsoft:main Aug 4, 2022
@ssigwart ssigwart deleted the searchTitle branch August 6, 2022 00:37
joyceerhl pushed a commit that referenced this pull request Aug 10, 2022
* Fix search editor title not updating

* Share old name with resolveModels

* Tweak name

Co-authored-by: Rob Lourens <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 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.

Stale search editor title when switching editor groups

4 participants