Skip to content

Allow opening files in existing code-server instance from a terminal outside code-server #2036

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

Closed
rabidpug opened this issue Aug 31, 2020 · 4 comments · Fixed by #2099
Closed
Assignees
Labels
enhancement Some improvement that isn't a feature
Milestone

Comments

@rabidpug
Copy link

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

@code-asher code-asher added the enhancement Some improvement that isn't a feature label Aug 31, 2020
@code-asher
Copy link
Member

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.

@code-asher
Copy link
Member

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?

@rabidpug
Copy link
Author

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 :)

@nhooyr
Copy link
Contributor

nhooyr commented Sep 1, 2020

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

Agreed!

@nhooyr nhooyr reopened this Sep 1, 2020
@nhooyr nhooyr changed the title code-server <file> attempts to start another instance of code-server Allow opening files in existing code-server instance from a terminal outside code-server Sep 1, 2020
@nhooyr nhooyr added this to the v3.5.1 milestone Sep 1, 2020
@nhooyr nhooyr closed this as completed Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants