ZIm/crates/remote_server/src
Conrad Irwin 87ba5fd7bc
Rebuild SSH installation (#20220)
Closes #ISSUE

This refactors SSH installation to require less shell stuff. We'd like
to
support arbitrary remote hosts, and unfortunately csh/tcsh have quoting
rules
that make it impossible to run multi-line scripts.

The primary changes are:
* The target path now contains the version:
`./zed_server/zed-remote-server-{release_channel}-{version}`
* We do all our processing in a temporary file and `mv` it into place.
* We do fewer calls to `ssh_command` overall. With the previous two
changes we can avoid lock files, and fuser calls. Instead cleanup of old
binaries now happens in `execute_run`.
* We only try to install the remote server when the connection is
established, not on each project open.

This should also put us in a good position if we want to pre-emptively
install new versions when the auto-updater detects an update for the
running version of zed (but that's not wired up yet)

Release Notes:

- Remoting: Fixed remoting when the remote runs `tcsh`
- Remoting: Improved latency of connecting
2024-11-05 13:37:54 -07:00
..
headless_project.rs Fix toolchain detection for worktree-local paths (#20229) 2024-11-05 14:25:18 +01:00
main.rs ssh remoting: Check nightly version correctly by comparing commit SHA (#19884) 2024-10-29 11:32:55 +01:00
remote_editing_tests.rs Remoting: Fix connecting to servers with long hostnames (#20093) 2024-11-01 13:52:21 -06:00
remote_server.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
unix.rs Rebuild SSH installation (#20220) 2024-11-05 13:37:54 -07:00