sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

How to just display start the remotely installed VSCode ?

Open cdevr opened this issue 5 years ago • 7 comments

So that you can use manual extensions on the remote host

cdevr avatar Jan 21 '20 11:01 cdevr

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,

Merith-TK avatar Jan 21 '20 18:01 Merith-TK

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.

cdevr avatar Jan 21 '20 22:01 cdevr

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 avatar Jan 21 '20 22:01 Merith-TK

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

Merith-TK avatar Jan 21 '20 22:01 Merith-TK

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 [email protected] 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 avatar Jan 21 '20 22:01 cdevr

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

cdevr avatar Jan 21 '20 23:01 cdevr

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

On Tue, Jan 21, 2020, 3:30 PM cdevr [email protected] 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 .

Merith-TK avatar Jan 21 '20 23:01 Merith-TK