Move diagnostics to the LocalLspStore (#21782)
This should be a no-op, but clarifies that some fields of the LspStore were never actually used in the remote case. Release Notes: - N/A
This commit is contained in:
parent
a35ef5b79f
commit
48eed7499f
3 changed files with 957 additions and 920 deletions
|
@ -1,9 +1,10 @@
|
|||
mod signature_help;
|
||||
|
||||
use crate::{
|
||||
lsp_store::LspStore, CodeAction, CoreCompletion, DocumentHighlight, Hover, HoverBlock,
|
||||
HoverBlockKind, InlayHint, InlayHintLabel, InlayHintLabelPart, InlayHintLabelPartTooltip,
|
||||
InlayHintTooltip, Location, LocationLink, MarkupContent, ProjectTransaction, ResolveState,
|
||||
lsp_store::{LocalLspStore, LspStore},
|
||||
CodeAction, CoreCompletion, DocumentHighlight, Hover, HoverBlock, HoverBlockKind, InlayHint,
|
||||
InlayHintLabel, InlayHintLabelPart, InlayHintLabelPartTooltip, InlayHintTooltip, Location,
|
||||
LocationLink, MarkupContent, ProjectTransaction, ResolveState,
|
||||
};
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use async_trait::async_trait;
|
||||
|
@ -348,7 +349,7 @@ impl LspCommand for PerformRename {
|
|||
if let Some(edit) = message {
|
||||
let (lsp_adapter, lsp_server) =
|
||||
language_server_for_buffer(&lsp_store, &buffer, server_id, &mut cx)?;
|
||||
LspStore::deserialize_workspace_edit(
|
||||
LocalLspStore::deserialize_workspace_edit(
|
||||
lsp_store,
|
||||
edit,
|
||||
self.push_to_history,
|
||||
|
@ -2306,7 +2307,7 @@ impl LspCommand for OnTypeFormatting {
|
|||
if let Some(edits) = message {
|
||||
let (lsp_adapter, lsp_server) =
|
||||
language_server_for_buffer(&lsp_store, &buffer, server_id, &mut cx)?;
|
||||
LspStore::deserialize_text_edits(
|
||||
LocalLspStore::deserialize_text_edits(
|
||||
lsp_store,
|
||||
buffer,
|
||||
edits,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue