Fetch code actions on cursor movement instead of on-demand
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
763d57c94a
commit
2fcdcac080
9 changed files with 134 additions and 70 deletions
|
@ -664,14 +664,9 @@ mod tests {
|
|||
}));
|
||||
let lib_file_uri = Url::from_file_path(root_dir.path().join("src/lib.rs")).unwrap();
|
||||
|
||||
let server = cx.read(|cx| {
|
||||
LanguageServer::new(
|
||||
Path::new("rust-analyzer"),
|
||||
root_dir.path(),
|
||||
cx.background().clone(),
|
||||
)
|
||||
.unwrap()
|
||||
});
|
||||
let server =
|
||||
LanguageServer::new(Path::new("rust-analyzer"), root_dir.path(), cx.background())
|
||||
.unwrap();
|
||||
server.next_idle_notification().await;
|
||||
|
||||
server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue