Prevent auto-restart of language servers after Stop All Servers - #51468
Merged
Conversation
Veykril
enabled auto-merge (squash)
March 13, 2026 10:13
zed-codeowner-coordinator
Bot
requested review from
a team,
cameron1024 and
smitbarmase
and removed request for
a team
March 13, 2026 10:13
Veykril
force-pushed
the
veykril/push-xyxqquzzywls
branch
from
March 19, 2026 16:54
fcf1b55 to
ec38089
Compare
Veykril
disabled auto-merge
March 19, 2026 16:54
Contributor
|
To note, would be good to have this mechanism extended to stopping single servers too. |
Veykril
force-pushed
the
veykril/push-xyxqquzzywls
branch
from
April 8, 2026 14:46
ec38089 to
d95628a
Compare
When the user clicks Stop All Servers, set a flag that suppresses automatic language server startup. The flag is cleared when Restart All Servers is hit. This guards the three auto-start paths: - Buffer registration with language servers (new buffers, file path changes, language detection, language registry reloads) - Server tree refresh (workspace config / manifest changes) - Settings-triggered restarts (semantic token mode changes)
Veykril
force-pushed
the
veykril/push-xyxqquzzywls
branch
2 times, most recently
from
June 5, 2026 07:41
15ef9d0 to
2b39403
Compare
Extend the stop-suppresses-restart mechanism to also work when stopping individual language servers, not just "Stop All Servers". Replace the single language_servers_stopped boolean with two fields: - all_language_servers_stopped: set by Stop All Servers - stopped_language_servers: tracks individually-stopped servers by name When a user stops a specific language server, its name is recorded in the stopped set. The three auto-start paths (buffer registration, server tree refresh, settings-triggered restarts) now skip servers in this set. Restarting a specific server clears it from the stopped set. Restart All Servers clears both the global flag and the per-server set.
Veykril
force-pushed
the
veykril/push-xyxqquzzywls
branch
from
June 5, 2026 08:11
2b39403 to
c83720e
Compare
osiewicz
approved these changes
Jun 5, 2026
TomPlanche
pushed a commit
to TomPlanche/zed
that referenced
this pull request
Jun 8, 2026
…industries#51468) Release Notes: - When stopping all language servers, Zed will now no longer restart language servers when language files change until the user restarts all language servers explicitly
This was referenced Jun 18, 2026
Closed
This was referenced Jul 1, 2026
This was referenced Jul 10, 2026
jonx
pushed a commit
to jonx/zed-aros
that referenced
this pull request
Jul 17, 2026
…industries#51468) Release Notes: - When stopping all language servers, Zed will now no longer restart language servers when language files change until the user restarts all language servers explicitly
jolutz
pushed a commit
to jolutz/zed
that referenced
this pull request
Aug 8, 2026
…industries#51468) Release Notes: - When stopping all language servers, Zed will now no longer restart language servers when language files change until the user restarts all language servers explicitly
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.
Release Notes: