Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does remote depend on local files? #9871

Closed
adriangb opened this issue May 10, 2024 · 4 comments
Closed

Does remote depend on local files? #9871

adriangb opened this issue May 10, 2024 · 4 comments
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@adriangb
Copy link

I often try to use vscode remote when on a bad connection, e.g. wifi. My usual workflow is to spin up a pod in a k8s cluster with ample resources and then do a "Connect to VSCode" from VSCode desktop. But I've noticed this is a lot slower (sometimes won't work) on certain connections. Does VSCode remote rely on copying over local files / the server in any way, or any ideas what would cause this? Thanks!

@vscodenpa vscodenpa added the ssh Issue in vscode-remote SSH label May 10, 2024
@bamurtaugh
Copy link
Member

Thanks for filing!

Does VSCode remote rely on copying over local files / the server in any way

This is a good question, but no, remote files will stay in the remote environment (no source code needs to be copied to your local machine). Docs: https://code.visualstudio.com/docs/remote/remote-overview.

when on a bad connection, e.g. wifi

My guess is the bad connection is interfering with and slowing other connectivity activities the remote extensions perform: https://code.visualstudio.com/docs/remote/faq#_what-are-the-connectivity-requirements-for-vs-code-server.

cc @chrmarti for any other thoughts

@chrmarti
Copy link
Contributor

chrmarti commented Jun 3, 2024

The files you open in the editor are copied over. We try to optimize the amount of data sent, but a bad connection can still affect the experience. Is there anything specific not working (well)?

@chrmarti chrmarti self-assigned this Jun 3, 2024
@chrmarti chrmarti added containers Issue in vscode-remote containers info-needed Issue requires more information from poster and removed ssh Issue in vscode-remote SSH labels Jun 3, 2024
@adriangb
Copy link
Author

adriangb commented Jun 3, 2024

What is not working well is if I am say on a plane with bad internet it will get stuck or be very slow on a step like:

[16530 ms] Start: Run in container: (dd iflag=fullblock bs=8192 count=7010; dd iflag=fullblock bs=7858 count=1) | tar --no-same-owner -xz -C /root/.vscode-server/bin/dc96b837cf6bb4af9cd736aa3af08cf8279f7685_1717418505494

I figured it might be copying over the vscode server from the local system instead of e.g. relying on curl to be available on the remote system. When I'm on a good connection this is instant.

The unfortunate thing is that this defeats one of my main use cases for remote: getting access to a beefy machine with a good internet connection when I'm on the go with slow internet.

@chrmarti
Copy link
Contributor

chrmarti commented Jun 4, 2024

Tracking that as #7473. Continuing there.

@chrmarti chrmarti closed this as completed Jun 4, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants