Skip to content

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Nov 20, 2025

Cherry-pick of #42739 to stable


Closes #40867

Since the recent changes in
#38881,
the filename editor is sometimes not focused after duplicating a file or
creating a new one, and similarly, autoscroll sometimes didn’t work. It
turns out that multiple calls to update_visible_entries_task cancel
the existing task, which might contain information about whether we need
to focus the filename editor and autoscroll after the task ends. To fix
this, we now carry that information forward to the next task that
overwrites it, so that when the latest task ends, we can use that
information to do the right thing.

Release Notes:

  • Fixed an issue in the Project Panel where duplicating or creating an
    entry sometimes didn’t focus the rename editing field.
#42739)

Closes #40867

Since the recent changes in
[https://github.com/zed-industries/zed/pull/38881](https://github.com/zed-industries/zed/pull/38881),
the filename editor is sometimes not focused after duplicating a file or
creating a new one, and similarly, autoscroll sometimes didn’t work. It
turns out that multiple calls to `update_visible_entries_task` cancel
the existing task, which might contain information about whether we need
to focus the filename editor and autoscroll after the task ends. To fix
this, we now carry that information forward to the next task that
overwrites it, so that when the latest task ends, we can use that
information to do the right thing.

Release Notes:

- Fixed an issue in the Project Panel where duplicating or creating an
entry sometimes didn’t focus the rename editing field.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 20, 2025
@zed-zippy zed-zippy bot merged commit f36b6f0 into v0.213.x Nov 20, 2025
36 of 38 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.213.x-524b97d7 branch November 20, 2025 09:13
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

1 participant