Code-server: Allow opening files in existing code-server instance from a terminal outside code-server

Created on 31 Aug 2020  路  4Comments  路  Source: cdr/code-server

running code-server attempts to start another instance of code-server instead of opening the file

Web Browser: Chrome
Local OS: Arch Linux
Remote OS: OSX
Remote Architecture: x86_64
code-server --version: 3.5.0

enhancement

Most helpful comment

Would be good to be able to do it from an external terminal as well though :)

Agreed!

All 4 comments

Are you running it inside code-server's terminal? If you run it outside of code-server it'll just launch another instance. I think it'd be worth figuring out how to make this work in an external terminal too though.

If you run it inside code-server's terminal and it still doesn't work (or if you're already running it in code-server's terminal) then could you run printenv VSCODE_IPC_HOOK_CLI and see if it outputs anything for you?

Ahh, for whatever reason it wasn't set inside my tmux session, but it's working now, thanks for your help!
Would be good to be able to do it from an external terminal as well though :)

Would be good to be able to do it from an external terminal as well though :)

Agreed!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchecinski picture pchecinski  路  3Comments

korzq picture korzq  路  3Comments

tecosaur picture tecosaur  路  3Comments

sa7mon picture sa7mon  路  3Comments

pchecinski picture pchecinski  路  3Comments