Update multibuffer when buffers' syntax trees or diagnostics change
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
ceff57d02f
commit
75dd37d873
2 changed files with 58 additions and 34 deletions
|
@ -580,6 +580,10 @@ impl Buffer {
|
|||
self.parse_count
|
||||
}
|
||||
|
||||
pub fn diagnostics_update_count(&self) -> usize {
|
||||
self.diagnostics_update_count
|
||||
}
|
||||
|
||||
pub(crate) fn syntax_tree(&self) -> Option<Tree> {
|
||||
if let Some(syntax_tree) = self.syntax_tree.lock().as_mut() {
|
||||
self.interpolate_tree(syntax_tree);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue