Ignore empty hover contents, trim final hover label text
This commit is contained in:
@@ -425,6 +425,12 @@ pub struct Hover {
|
||||
pub language: Option<Arc<Language>>,
|
||||
}
|
||||
|
||||
impl Hover {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.contents.iter().all(|block| block.text.is_empty())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct ProjectTransaction(pub HashMap<ModelHandle<Buffer>, language::Transaction>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user