lsp: Don't log oneshot channel errors from notify (#29857)
This is kind of noisy and not very informative. Release Notes: - N/A
This commit is contained in:
parent
b404024c7a
commit
c765da1c82
3 changed files with 14 additions and 14 deletions
|
@ -278,7 +278,7 @@ impl RegisteredBuffer {
|
||||||
content_changes,
|
content_changes,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
let _ = done_tx.send((buffer.snapshot_version, buffer.snapshot.clone()));
|
let _ = done_tx.send((buffer.snapshot_version, buffer.snapshot.clone()));
|
||||||
Some(())
|
Some(())
|
||||||
|
@ -732,7 +732,7 @@ impl Copilot {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.log_err();
|
.ok();
|
||||||
|
|
||||||
RegisteredBuffer {
|
RegisteredBuffer {
|
||||||
uri,
|
uri,
|
||||||
|
@ -827,7 +827,7 @@ impl Copilot {
|
||||||
text_document: lsp::TextDocumentIdentifier::new(buffer.uri),
|
text_document: lsp::TextDocumentIdentifier::new(buffer.uri),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1164,7 +1164,7 @@ impl LanguageServer {
|
||||||
id: NumberOrString::Number(id),
|
id: NumberOrString::Number(id),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1234,7 +1234,7 @@ impl LanguageServer {
|
||||||
removed: vec![],
|
removed: vec![],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
self.notify::<DidChangeWorkspaceFolders>(¶ms).log_err();
|
self.notify::<DidChangeWorkspaceFolders>(¶ms).ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Add new workspace folder to the list.
|
/// Add new workspace folder to the list.
|
||||||
|
@ -1264,7 +1264,7 @@ impl LanguageServer {
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
self.notify::<DidChangeWorkspaceFolders>(¶ms).log_err();
|
self.notify::<DidChangeWorkspaceFolders>(¶ms).ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn set_workspace_folders(&self, folders: BTreeSet<Url>) {
|
pub fn set_workspace_folders(&self, folders: BTreeSet<Url>) {
|
||||||
|
@ -1293,7 +1293,7 @@ impl LanguageServer {
|
||||||
let params = DidChangeWorkspaceFoldersParams {
|
let params = DidChangeWorkspaceFoldersParams {
|
||||||
event: WorkspaceFoldersChangeEvent { added, removed },
|
event: WorkspaceFoldersChangeEvent { added, removed },
|
||||||
};
|
};
|
||||||
self.notify::<DidChangeWorkspaceFolders>(¶ms).log_err();
|
self.notify::<DidChangeWorkspaceFolders>(¶ms).ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1311,14 +1311,14 @@ impl LanguageServer {
|
||||||
self.notify::<notification::DidOpenTextDocument>(&DidOpenTextDocumentParams {
|
self.notify::<notification::DidOpenTextDocument>(&DidOpenTextDocumentParams {
|
||||||
text_document: TextDocumentItem::new(uri, language_id, version, initial_text),
|
text_document: TextDocumentItem::new(uri, language_id, version, initial_text),
|
||||||
})
|
})
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn unregister_buffer(&self, uri: Url) {
|
pub fn unregister_buffer(&self, uri: Url) {
|
||||||
self.notify::<notification::DidCloseTextDocument>(&DidCloseTextDocumentParams {
|
self.notify::<notification::DidCloseTextDocument>(&DidCloseTextDocumentParams {
|
||||||
text_document: TextDocumentIdentifier::new(uri),
|
text_document: TextDocumentIdentifier::new(uri),
|
||||||
})
|
})
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6092,7 +6092,7 @@ impl LspStore {
|
||||||
content_changes,
|
content_changes,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
None
|
None
|
||||||
|
@ -6125,7 +6125,7 @@ impl LspStore {
|
||||||
text,
|
text,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7472,7 +7472,7 @@ impl LspStore {
|
||||||
new_uri: new_uri.clone(),
|
new_uri: new_uri.clone(),
|
||||||
}],
|
}],
|
||||||
})
|
})
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(())
|
Some(())
|
||||||
|
@ -7575,7 +7575,7 @@ impl LspStore {
|
||||||
.notify::<lsp::notification::DidChangeWatchedFiles>(
|
.notify::<lsp::notification::DidChangeWatchedFiles>(
|
||||||
&lsp::DidChangeWatchedFilesParams { changes },
|
&lsp::DidChangeWatchedFilesParams { changes },
|
||||||
)
|
)
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
Some(())
|
Some(())
|
||||||
});
|
});
|
||||||
|
@ -9140,7 +9140,7 @@ impl LspStore {
|
||||||
if !params.changes.is_empty() {
|
if !params.changes.is_empty() {
|
||||||
server
|
server
|
||||||
.notify::<lsp::notification::DidChangeWatchedFiles>(¶ms)
|
.notify::<lsp::notification::DidChangeWatchedFiles>(¶ms)
|
||||||
.log_err();
|
.ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue