mirror of https://github.com/lapce/lapce.git
clear text layout cache when setting diagnostics
This commit is contained in:
parent
60f3252ab8
commit
2caa198bf8
|
@ -478,6 +478,7 @@ pub fn set_language(&mut self, language: LapceLanguage) {
|
|||
}
|
||||
|
||||
pub fn set_diagnostics(&mut self, diagnostics: &[EditorDiagnostic]) {
|
||||
self.clear_text_layout_cache();
|
||||
self.diagnostics = Some(Arc::new(
|
||||
diagnostics
|
||||
.iter()
|
||||
|
|
Loading…
Reference in New Issue