Skip to content

docs: add zed as coder_app to open from workspace with a hotlink #17236

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

Merged
merged 4 commits into from
Apr 7, 2025

Conversation

sharkymark
Copy link
Contributor

I want to open the locally installed Zed IDE as an icon from a Coder workspace.

To do this, I added a coder_app resource and a url with Zed's remote development hotlink approach.

resource "coder_app" "zed" {
  agent_id = coder_agent.dev.id
  slug          = "slug"
  display_name  = "Zed"
  external = true
  url      = "zed://ssh/coder.${data.coder_workspace.me.name}"
  icon     = "/icon/zed.svg"
}

My community Docker template lets the user choose VS Code Desktop, code-server or Zed.

image

image

@kylecarbs

@cdr-bot cdr-bot bot added the community Pull Requests and issues created by the community. label Apr 2, 2025
@EdwardAngert EdwardAngert added the docs Area: coder.com/docs label Apr 3, 2025
@EdwardAngert EdwardAngert self-requested a review April 3, 2025 00:56
@EdwardAngert
Copy link
Contributor

thanks @sharkymark !

@EdwardAngert EdwardAngert changed the title docs: Zed as coder_app to open from workspace with a hotlink docs: zed as coder_app to open from workspace with a hotlink Apr 3, 2025
@EdwardAngert EdwardAngert changed the title docs: zed as coder_app to open from workspace with a hotlink docs: add zed as coder_app to open from workspace with a hotlink Apr 3, 2025
@EdwardAngert EdwardAngert requested a review from matifali April 4, 2025 18:34
sharkymark and others added 2 commits April 5, 2025 07:24
Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com>
Comment on lines +65 to +76
1. Connect via a coder_app workspace icon and SSH hotlink:

```hcl
resource "coder_app" "zed" {
agent_id = coder_agent.main.id
slug = "slug"
display_name = "Zed"
external = true
url = "zed://ssh/coder.${data.coder_workspace.me.name}"
icon = "/icon/zed.svg"
}
```
Copy link
Member

@matifali matifali Apr 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is terraform code, it should go somewhere into the https://coder.com/docs/admin/templates/extending-templates section. User guides are for developers with member roles who may not have template admin roles to actually add something to a template.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, @matifali - I'll take care of that

@EdwardAngert EdwardAngert changed the base branch from main to 17236-zed-app April 7, 2025 13:42
@EdwardAngert EdwardAngert merged commit 3335129 into coder:17236-zed-app Apr 7, 2025
5 of 6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Pull Requests and issues created by the community. docs Area: coder.com/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants