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

code tunnel #63

Open
jmatsushita opened this issue Jun 16, 2023 · 5 comments
Open

code tunnel #63

jmatsushita opened this issue Jun 16, 2023 · 5 comments

Comments

@jmatsushita
Copy link

Is it possible to use this repo's patch to run code tunnel as documented here? It would allow to tunnel through a vscode.dev to a local machine (instead of requiring the remote ssh extension), for instance to access a code repo from a mobile device.

It looks like @christoph00 has it working with a similar patch but it would be great it it was an option of this flake.

I've tried to download the CLI binary, which fails apparently because of the same hardcoded path problem. Would love to have a workaround too if there's one, or a more principled solution, like this repo provides!

@msteen
Copy link
Collaborator

msteen commented Jun 16, 2023

Would you need vscode-server in that case too, or is (in practice) either vscode-server or the tunnel? If it is the latter, you should be able to just use installPath and set it to ~/.vscode-cli and add the tunnel service you linked to.

The rest of the code you linked isn't just similar, but actually an older version of this project, tweaked for vscode-cli.

@jmatsushita
Copy link
Author

Thanks, all useful to know ! That might unlock me, but in practice, indeed having both is the main use case since I would for use the remote ssh extension from my vscode desktop client, but the vscode.dev tunnel from my phone (you know, for these moments you have a code thought on the go).

@msteen
Copy link
Collaborator

msteen commented Jun 19, 2023

Good to know! Normally I would say that it is outside the scope of this project (not related to VS Code server), but given the overlap is so extremely high that you should be able to get it to work by configuring this project the right way, I will see if can add support for it.

@jmatsushita
Copy link
Author

That would be great, thank you for considering it!

@msteen
Copy link
Collaborator

msteen commented Jun 19, 2023

I made a branch for this. I haven't tested it, but it should work for vscode-cli, but to make it work with tunnels out of the box too, I thought of adding that tunnel service you linked too as well (under services.vscode-tunnel), but do you know how the vscode-cli package and that in the home directory relate? Does the package use the thing installed in the home directory? This line makes it unclear to me how to proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants