coder / sshcode

Run VS Code on any server over SSH.
MIT License
5.74k stars 216 forks source link

How to just display start the remotely installed VSCode ? #164

Open cdevr opened 4 years ago

cdevr commented 4 years ago

So that you can use manual extensions on the remote host

Merith-TK commented 4 years ago

So to recap from what i am getting from your issue

you want to use the extensions on the REMOTE, and not sync the ones on the Client?

I mean this in theory would be easyish to implement, just adding a flag,

Side nore, for future issues, i would reccomend explaining how you would want it to work so that we can understand more

The title of a issue is a summary,

And SSHCODE works by using ssh to run commands on the REMOTE, which it downloads a custom version of cdr/code-server and runs it, before Proxying the port that code-server is running on, back to local host.

In theory it would be possible to use the REMOTES local extensions/settings,

cdevr commented 4 years ago

That's correct. The issue is that some organisations have private plugins for internal systems that aren't installed, or allowed to be installed on laptops (nor would they work: they depend on software only installed on the desktops). It would be great to be able to use them through this tool.

Merith-TK commented 4 years ago

Well, Most of your private plugins should work just fine if you make it use vscode-datadir Specific Microsoft plugins such as the Remote toolset will not work at all, as they are hardcoded to only work with official microsoft releases,

If the private plugins are not hardcoded to only work with a specific setup, then yeah they should work, i would recommend forking this and adding the feature as a flag for you,

Currently im waiting on my fork to be added into the repo to make the tool work on windows.

Merith-TK commented 4 years ago

A workaround you could do to make it work, is to make symlinks from the VSCode data dir to the sshcode-server datadir, and use the --skip-sync flag

cdevr commented 4 years ago

How do I find the vscode datadir ? I was trying just that earlier today and couldn't find it.

On Tue, Jan 21, 2020 at 11:50 PM Merith notifications@github.com wrote:

A workaround you could do to make it work, is to make symlinks from the VSCode data dir to the sshcode-server datadir,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cdr/sshcode/issues/164?email_source=notifications&email_token=ABF2IKZMJIBODC4ML7JO66LQ6532JA5CNFSM4KJSABS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJRSNUY#issuecomment-576923347, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABF2IK7V7SBNAE6MYCR3YITQ6532JANCNFSM4KJSABSQ .

cdevr commented 4 years ago

I mean of course the one for the vscode-server that this tool is using.

Merith-TK commented 4 years ago

Look iver the source code, should be the remoteExtensionsDir variable in sshcode.go

On Tue, Jan 21, 2020, 3:30 PM cdevr notifications@github.com wrote:

I mean of course the one for the vscode-server that this tool is using.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cdr/sshcode/issues/164?email_source=notifications&email_token=ACPQOXX3YDQLLOCSTNWFYYLQ66AQTA5CNFSM4KJSABS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJRVQAI#issuecomment-576935937, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPQOXWI7EBI7JSP3VMQDHTQ66AQTANCNFSM4KJSABSQ .