Allow to temporarily stop LSP servers (#28034)
Same as `editor::RestartLanguageServer`, now there's an `editor::StopLanguageServer` action that stops all language servers, related to the currently opened editor. Opening another singleton editor with the same language or changing selections in a multi buffer will bring the servers back up. Release Notes: - Added a way to temporarily stop LSP servers --------- Co-authored-by: Michael Sloan <mgsloan@gmail.com>
This commit is contained in:
parent
b9724d9cbe
commit
0c82541f0a
8 changed files with 114 additions and 28 deletions
|
@ -400,6 +400,7 @@ messages!(
|
|||
(RespondToChannelInvite, Foreground),
|
||||
(RespondToContactRequest, Foreground),
|
||||
(RestartLanguageServers, Foreground),
|
||||
(StopLanguageServers, Background),
|
||||
(RoomUpdated, Foreground),
|
||||
(SaveBuffer, Foreground),
|
||||
(SendChannelMessage, Background),
|
||||
|
@ -593,6 +594,7 @@ request_messages!(
|
|||
(RejoinRemoteProjects, RejoinRemoteProjectsResponse),
|
||||
(MultiLspQuery, MultiLspQueryResponse),
|
||||
(RestartLanguageServers, Ack),
|
||||
(StopLanguageServers, Ack),
|
||||
(OpenContext, OpenContextResponse),
|
||||
(CreateContext, CreateContextResponse),
|
||||
(SynchronizeContexts, SynchronizeContextsResponse),
|
||||
|
@ -674,6 +676,7 @@ entity_messages!(
|
|||
LoadCommitDiff,
|
||||
MultiLspQuery,
|
||||
RestartLanguageServers,
|
||||
StopLanguageServers,
|
||||
OnTypeFormatting,
|
||||
OpenNewBuffer,
|
||||
OpenBufferById,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue