Take a reference in LSP notify (#23077)
In current code this doesn't have benefit. In preparation for avoiding a clone of workspace configuration. Having the interface this way may make opportunities for efficiency clearer in the future Release Notes: - N/A
This commit is contained in:
parent
c1c767a5bd
commit
2f762955cd
10 changed files with 52 additions and 51 deletions
|
@ -963,7 +963,7 @@ impl LspLogView {
|
|||
});
|
||||
|
||||
server
|
||||
.notify::<SetTrace>(SetTraceParams { value: level })
|
||||
.notify::<SetTrace>(&SetTraceParams { value: level })
|
||||
.ok();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ async fn test_lsp_logs(cx: &mut TestAppContext) {
|
|||
let log_view = window.root(cx).unwrap();
|
||||
let mut cx = VisualTestContext::from_window(*window, cx);
|
||||
|
||||
language_server.notify::<lsp::notification::LogMessage>(lsp::LogMessageParams {
|
||||
language_server.notify::<lsp::notification::LogMessage>(&lsp::LogMessageParams {
|
||||
message: "hello from the server".into(),
|
||||
typ: lsp::MessageType::INFO,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue