Skip to content

DOC: How to add a Jetbrains launcher icon to Workspace #7206

@djarbz

Description

@djarbz

I have icons for Coder, VSCode, SSH, etc...
But what I really want is an icon for Jetbrains Gateway.

It looks like we can define the coder_app resource.

resource "coder_app" "intellij" {
  agent_id     = coder_agent.dev.id
  icon         = "${data.coder_workspace.me.access_url}/icon/intellij.svg"
  slug         = "intellij"
  display_name = "JetBrains IntelliJ"
  command      = "projector run"
}

What I am less clear on is how to use the Jetbrains-Gateway registered protocol to auto-launch the Gateway client for this workspace.
Per the documentation, a Gateway Link can be used to auto-launch the local application and should look something like this URL, with the query deconstructed for readability.

jetbrains-gateway://${data.coder_workspace.me.access_url}#
idePath={PathToIDEBinaryInWorkspace}
&projectPath={PathToWorkspaceProjectFolder}
&host={CoderServerHost}
&port=22
&user=coder
&type=ssh
&deploy=false

I have been unable to find much documentation on the jetbrains-gateway protocol and I'm thinking we may need to set the type to reference the coder plugin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions