Skip to content

project_panel: Fix previous selection not restoring when filename editor blurs#48578

Merged
smitbarmase merged 1 commit intomainfrom
project-panel-edit-state-discard
Feb 6, 2026
Merged

project_panel: Fix previous selection not restoring when filename editor blurs#48578
smitbarmase merged 1 commit intomainfrom
project-panel-edit-state-discard

Conversation

@smitbarmase
Copy link
Copy Markdown
Member

@smitbarmase smitbarmase commented Feb 6, 2026

Prep for: #46750

Edit-state cleanup in the Project Panel was inconsistent between Escape cancel and blur. Blurring the filename editor during file/folder creation could clear edit state without restoring the previous selection.

This routes both paths through the same discard flow and adds test coverage for the blur case.

Release Notes:

  • Fixed an issue where blurring the filename editor in the Project Panel could lose the previous selection while creating a file or folder.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 6, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Feb 6, 2026
@smitbarmase smitbarmase merged commit fe0f7f3 into main Feb 6, 2026
36 checks passed
@smitbarmase smitbarmase deleted the project-panel-edit-state-discard branch February 6, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant