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:
Kirill Bulatov 2023-09-02 23:56:48 +03:00
parent 7b3dba5d77
commit 7f450da39e
2 changed files with 14 additions and 17 deletions

View file

@ -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)]