Skip to content

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

Merged
smitbarmase merged 1 commit into
mainfrom
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 into
mainfrom
project-panel-edit-state-discard

Conversation

@smitbarmase

@smitbarmase smitbarmase commented Feb 6, 2026

Copy link
Copy Markdown
Member

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
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…tor blurs (zed-industries#48578)

Prep for: zed-industries#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.
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…tor blurs (zed-industries#48578)

Prep for: zed-industries#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.
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