Don't serialize the full LSP symbol when collaborating
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
72ad3c2897
commit
fad335b2ba
7 changed files with 68 additions and 55 deletions
|
@ -80,7 +80,7 @@ pub trait LspExt: 'static + Send + Sync {
|
|||
fn label_for_completion(&self, _: &lsp::CompletionItem, _: &Language) -> Option<CodeLabel> {
|
||||
None
|
||||
}
|
||||
fn label_for_symbol(&self, _: &lsp::SymbolInformation, _: &Language) -> Option<CodeLabel> {
|
||||
fn label_for_symbol(&self, _: &str, _: lsp::SymbolKind, _: &Language) -> Option<CodeLabel> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
@ -435,8 +435,8 @@ impl Language {
|
|||
.label_for_completion(completion, self)
|
||||
}
|
||||
|
||||
pub fn label_for_symbol(&self, symbol: &lsp::SymbolInformation) -> Option<CodeLabel> {
|
||||
self.lsp_ext.as_ref()?.label_for_symbol(symbol, self)
|
||||
pub fn label_for_symbol(&self, name: &str, kind: lsp::SymbolKind) -> Option<CodeLabel> {
|
||||
self.lsp_ext.as_ref()?.label_for_symbol(name, kind, self)
|
||||
}
|
||||
|
||||
pub fn highlight_text<'a>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue