ssh lsp completions (#17665)
Release Notes: * ssh-remoting: Fixed shell environment loading for remote shells.
This commit is contained in:
parent
dea85099a2
commit
ca2cce79ed
8 changed files with 74 additions and 78 deletions
|
@ -4629,14 +4629,13 @@ impl LspStore {
|
|||
return;
|
||||
}
|
||||
|
||||
let local = self.as_local().unwrap();
|
||||
|
||||
let stderr_capture = Arc::new(Mutex::new(Some(String::new())));
|
||||
let lsp_adapter_delegate = ProjectLspAdapterDelegate::for_local(self, worktree_handle, cx);
|
||||
let cli_environment = self
|
||||
.as_local()
|
||||
.unwrap()
|
||||
.environment
|
||||
.read(cx)
|
||||
.get_cli_environment();
|
||||
let cli_environment = local.environment.update(cx, |environment, cx| {
|
||||
environment.get_environment(Some(worktree_id), Some(worktree_path.clone()), cx)
|
||||
});
|
||||
|
||||
let pending_server = match self.languages.create_pending_language_server(
|
||||
stderr_capture.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue