Skip to content

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

Closed

Description

@rabidpug

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

Activity

  1. code-asher commented on Aug 31, 2020

    @code-asher
    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.

  2. code-asher commented on Aug 31, 2020

    @code-asher
    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?

  3. rabidpug commented on Aug 31, 2020

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

  4. nhooyr commented on Sep 1, 2020

    @nhooyr
    Contributor

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

    Agreed!

  5. reopened this on Sep 1, 2020
  6. 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[/+] on Sep 1, 2020
  7. added this to the v3.5.1 milestone on Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementSome improvement that isn't a feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions