lsp: Identify language servers by their configuration (#35270)
- **WIP: reorganize dispositions** - **Introduce a LocalToolchainStore trait and use it for LspAdapter methods** Closes #35782 Closes #27331 Release Notes: - Python: Improved propagation of a selected virtual environment into the LSP configuration. This should the make all language-related features such as Go to definition or Find all references more reliable. --------- Co-authored-by: Cole Miller <cole@zed.dev> Co-authored-by: Lukas Wirth <lukas@zed.dev>
This commit is contained in:
parent
42ffa8900a
commit
b8a106632f
32 changed files with 1037 additions and 1085 deletions
|
@ -1099,9 +1099,9 @@ async fn test_reporting_fs_changes_to_language_servers(cx: &mut gpui::TestAppCon
|
|||
let prev_read_dir_count = fs.read_dir_call_count();
|
||||
|
||||
let fake_server = fake_servers.next().await.unwrap();
|
||||
let (server_id, server_name) = lsp_store.read_with(cx, |lsp_store, _| {
|
||||
let (id, status) = lsp_store.language_server_statuses().next().unwrap();
|
||||
(id, status.name.clone())
|
||||
let server_id = lsp_store.read_with(cx, |lsp_store, _| {
|
||||
let (id, _) = lsp_store.language_server_statuses().next().unwrap();
|
||||
id
|
||||
});
|
||||
|
||||
// Simulate jumping to a definition in a dependency outside of the worktree.
|
||||
|
@ -1110,7 +1110,6 @@ async fn test_reporting_fs_changes_to_language_servers(cx: &mut gpui::TestAppCon
|
|||
project.open_local_buffer_via_lsp(
|
||||
lsp::Url::from_file_path(path!("/the-registry/dep1/src/dep1.rs")).unwrap(),
|
||||
server_id,
|
||||
server_name.clone(),
|
||||
cx,
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue