on master help sign in
Restore diagnostics.
commitf2c2fa0cad2a0d15e349765d28e488f9acf88b88 authorBlaž Hrastnik <blaz@mxxn.io> dateFri 5 Feb 2021, 17:50 (6 years ago) parenta924ad2
1 file changed+6−7
helix-term/src/application.rs+6−7
helix-term/src/application.rs+6−7
@@ -133,13 +133,12 @@ impl Application {
133133 Notification::PublishDiagnostics(params) => {
134134 let path = Some(params.uri.to_file_path().unwrap());
135135
136− let view: Option<&mut View> = None;
137− // TODO
138− // let view = self
139− // .editor
140− // .views
141− // .iter_mut()
142− // .find(|view| view.doc.path == path);
136+ let view = self
137+ .editor
138+ .tree
139+ .views()
140+ .map(|(view, _key)| view)
141+ .find(|view| view.doc.path == path);
143142
144143 if let Some(view) = view {
145144 let doc = view.doc.text().slice(..);