Skip to content

Coder Desktop Integration #21

Closed
coder/coder
#17572

Description

@ThomasK33

Implement an enhancement making this extension aware of Coder Desktop. With Coder Desktop running, there is already an established tunnel to a workspace; thus, the extension does not need to create another tunnel.

The extension should prioritize the existing tunnel rather than creating a new one and should be able to display tunnel statistics related to the VPN within the editor.

Activity

  1. added theissue type on Mar 6, 2025
  2. matifali commented on Mar 14, 2025

    @matifali
    Contributor

    Hi @fioan89. Can you start looking into this? I think the initial launch should contain this functionality.

  3. matifali commented on Mar 14, 2025

    @matifali
    Contributor

    @ThomasK33 and I can help with how Coder Desktop works here.

  4. fioan89 commented on Mar 14, 2025

    @fioan89
    Collaborator

    Sure. Right now I was working on integrating uri handling. It's slowly progressing as Toolbox API is not as flexilblle as Gateway's API. Should I put it on hold?

  5. matifali commented on Mar 14, 2025

    @matifali
    Contributor

    No that's a higher priorty. This is something we can look into after that.

  6. fioan89 commented on Mar 14, 2025

    @fioan89
    Collaborator

    OK, so I'll continue with uri handling if my understanding is correct.

  7. matifali commented on Apr 3, 2025

    @matifali
    Contributor

    This depends on coder/coder#16828 otherwise it would be too complex to handle different URIs for Coder desktop and existing Coder CLI.

  8. matifali commented on Apr 17, 2025

    @matifali
    Contributor

    We have a reference VS Code implementation at coder/vscode-coder#482

  9. ethanndickson commented on Apr 18, 2025

    @ethanndickson
    Member

    I'm not too familiar with the Jetbrains plugins, but I'd recommend actually not using the VSCode implementation as a reference, since it looks like you don't use wildcard SSH configs, you can probably just config something like (not exact, haven't tested):

    Match host coder-jetbrains-toolbox-foo--test.coder.bar exec "/path/to/coder connect exists agent1.foo.owner.coder"
      HostName agent1.foo.owner.coder
    Host coder-jetbrains-toolbox-foo--test.coder.bar
      ProxyCommand /path/to/coder ssh owner/foo.agent1
      ConnectTimeout 0
      StrictHostKeyChecking no
      UserKnownHostsFile /dev/null
      LogLevel ERROR
      SetEnv CODER_SSH_SESSION_TYPE=JetBrains
    

    Where the ProxyCommand is only used if the agent wasn't available at agent1.foo.owner.coder (also keeping in mind that the .coder suffix is configurable deployment-wide)

    For that reason, a better reference implementation would be coder/coder#17419

  10. fioan89 commented on Apr 18, 2025

    @fioan89
    Collaborator

    Thank you for the feedback @ethanndickson. Wildcard config support was added no too long ago.

  11. matifali commented on Apr 18, 2025

    @matifali
    Contributor

    since it looks like you don't use wildcard SSH configs

    @ethanndickson, we do have wildcard configs on by default with the option to opt out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions