Properly open worktrees when cmd-clicking in terminal or on inlay hints (#19280)
* uses the state that's synced, to fetch the language server name * uses proper, canonicalized path when creating a remote ssh worktree, otherwise `~/foo/something` stays unexpanded Release Notes: - N/A
This commit is contained in:
parent
bcdb10b3cb
commit
834d50f0db
6 changed files with 43 additions and 47 deletions
|
@ -3979,17 +3979,6 @@ impl Project {
|
|||
.read(cx)
|
||||
.language_servers_for_buffer(buffer, cx)
|
||||
}
|
||||
|
||||
pub fn language_server_for_buffer<'a>(
|
||||
&'a self,
|
||||
buffer: &'a Buffer,
|
||||
server_id: LanguageServerId,
|
||||
cx: &'a AppContext,
|
||||
) -> Option<(&'a Arc<CachedLspAdapter>, &'a Arc<LanguageServer>)> {
|
||||
self.lsp_store
|
||||
.read(cx)
|
||||
.language_server_for_buffer(buffer, server_id, cx)
|
||||
}
|
||||
}
|
||||
|
||||
fn deserialize_code_actions(code_actions: &HashMap<String, bool>) -> Vec<lsp::CodeActionKind> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue