lsp: Re-enable hooks.

pull/8/head
Blaž Hrastnik 4 years ago
parent d61b4854b8
commit c8424c6ff0

@ -83,11 +83,11 @@ impl Application {
// initialize lsp // initialize lsp
self.language_server.initialize().await.unwrap(); self.language_server.initialize().await.unwrap();
// TODO: temp
// self.language_server self.language_server
// .text_document_did_open(&cx.editor.view().unwrap().doc) .text_document_did_open(&self.editor.view().unwrap().doc)
// .await .await
// .unwrap(); .unwrap();
self.render(); self.render();
@ -142,13 +142,12 @@ impl Application {
match notification { match notification {
Notification::PublishDiagnostics(params) => { Notification::PublishDiagnostics(params) => {
let path = Some(params.uri.to_file_path().unwrap()); let path = Some(params.uri.to_file_path().unwrap());
let view: Option<&mut helix_view::View> = None;
// TODO: let view = self
// let view = self .editor
// .editor .views
// .views .iter_mut()
// .iter_mut() .find(|view| view.doc.path == path);
// .find(|view| view.doc.path == path);
if let Some(view) = view { if let Some(view) = view {
let doc = view.doc.text().slice(..); let doc = view.doc.text().slice(..);

Loading…
Cancel
Save