Properly notify all language server worktree trust listeners#46613
Merged
SomeoneToIgnore merged 1 commit intomainfrom Jan 12, 2026
Merged
Properly notify all language server worktree trust listeners#46613SomeoneToIgnore merged 1 commit intomainfrom
SomeoneToIgnore merged 1 commit intomainfrom
Conversation
Contributor
Author
|
/cherry-pick preview |
github-actions bot
pushed a commit
that referenced
this pull request
Jan 12, 2026
Closes #46590 https://github.com/user-attachments/assets/8464a3b6-9258-4d15-9168-56178bf46437 `use smol::channel::{Receiver, Sender};` do not propagate the value change to all receivers, hence only one language server received the "worktree trusted" message. The fix uses `watch` kind of channels instead, and cleans up its state more eager to rely on the sender drop as another form of notification. Release Notes: - Fixed groups of language servers not starting after worktree trust approval
github-actions bot
pushed a commit
that referenced
this pull request
Jan 12, 2026
Closes #46590 https://github.com/user-attachments/assets/8464a3b6-9258-4d15-9168-56178bf46437 `use smol::channel::{Receiver, Sender};` do not propagate the value change to all receivers, hence only one language server received the "worktree trusted" message. The fix uses `watch` kind of channels instead, and cleans up its state more eager to rely on the sender drop as another form of notification. Release Notes: - Fixed groups of language servers not starting after worktree trust approval
zed-zippy bot
added a commit
that referenced
this pull request
Jan 12, 2026
… (cherry-pick to preview) (#46614) Cherry-pick of #46613 to preview ---- Closes #46590 https://github.com/user-attachments/assets/8464a3b6-9258-4d15-9168-56178bf46437 `use smol::channel::{Receiver, Sender};` do not propagate the value change to all receivers, hence only one language server received the "worktree trusted" message. The fix uses `watch` kind of channels instead, and cleans up its state more eager to rely on the sender drop as another form of notification. Release Notes: - Fixed groups of language servers not starting after worktree trust approval Co-authored-by: Kirill Bulatov <kirill@zed.dev>
zed-zippy bot
added a commit
that referenced
this pull request
Jan 12, 2026
… (cherry-pick to stable) (#46615) Cherry-pick of #46613 to stable ---- Closes #46590 https://github.com/user-attachments/assets/8464a3b6-9258-4d15-9168-56178bf46437 `use smol::channel::{Receiver, Sender};` do not propagate the value change to all receivers, hence only one language server received the "worktree trusted" message. The fix uses `watch` kind of channels instead, and cleans up its state more eager to rely on the sender drop as another form of notification. Release Notes: - Fixed groups of language servers not starting after worktree trust approval Co-authored-by: Kirill Bulatov <kirill@zed.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #46590
trust_all.mov
use smol::channel::{Receiver, Sender};do not propagate the value change to all receivers, hence only one language server received the "worktree trusted" message.The fix uses
watchkind of channels instead, and cleans up its state more eager to rely on the sender drop as another form of notification.Release Notes: