project: Fine-grained language server management (#24038)
Closes #ISSUE https://github.com/zed-industries/zed/pull/23804 Release Notes: - Improved detection of project roots for use by language servers. Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ... --------- Co-authored-by: smit <0xtimsb@gmail.com> Co-authored-by: Henrikh Kantuni <henrikh.kantuni@gmail.com> Co-authored-by: Caleb! <48127194+kaf-lamed-beyt@users.noreply.github.com> Co-authored-by: Marshall Bowers <git@maxdeviant.com> Co-authored-by: Kirill Bulatov <kirill@zed.dev> Co-authored-by: Agus Zubiaga <agus@zed.dev> Co-authored-by: Danilo <danilo@zed.dev> Co-authored-by: Nate Butler <iamnbutler@gmail.com>
This commit is contained in:
parent
8d839fca06
commit
a618830aea
33 changed files with 2350 additions and 962 deletions
|
@ -7234,8 +7234,8 @@ mod tests {
|
|||
init_test(cx);
|
||||
|
||||
let fs = FakeFs::new(cx.executor().clone());
|
||||
fs.as_fake().insert_tree("/root", json!({})).await;
|
||||
let project = Project::test(fs, ["/root".as_ref()], cx).await;
|
||||
fs.as_fake().insert_tree(path!("/root"), json!({})).await;
|
||||
let project = Project::test(fs, [path!("/root").as_ref()], cx).await;
|
||||
let workspace =
|
||||
cx.add_window(|window, cx| Workspace::test_new(project.clone(), window, cx));
|
||||
let cx = &mut VisualTestContext::from_window(*workspace, cx);
|
||||
|
@ -7258,7 +7258,7 @@ mod tests {
|
|||
.unwrap();
|
||||
|
||||
cx.executor().run_until_parked();
|
||||
cx.simulate_new_path_selection(|_| Some(PathBuf::from("/root/new")));
|
||||
cx.simulate_new_path_selection(|_| Some(PathBuf::from(path!("/root/new"))));
|
||||
save_task.await.unwrap();
|
||||
|
||||
// Rename the file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue