mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Omit hint resolve data better
Omit sending inlay hint resolve data if inlay has no properties that client resolve capabilities support.
This commit is contained in:
parent
7b3dba5d77
commit
7f450da39e
2 changed files with 14 additions and 17 deletions
|
@ -74,14 +74,6 @@ impl InlayFieldsToResolve {
|
|||
resolve_label_command: false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn can_resolve(&self) -> bool {
|
||||
self.resolve_text_edits
|
||||
|| self.resolve_hint_tooltip
|
||||
|| self.resolve_label_tooltip
|
||||
|| self.resolve_label_location
|
||||
|| self.resolve_label_command
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue