Skip to content

docs: add zed code_app to extending-templates doc #17281

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 5 commits into from
Apr 7, 2025
Merged

Conversation

EdwardAngert
Copy link
Contributor

@EdwardAngert EdwardAngert commented Apr 7, 2025

continuation of #17236 (thanks @sharkymark )

adds zed as a coder_app to https://coder.com/docs/admin/templates/extending-templates

preview

)

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.

   ```hcl
   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](https://github.com/sharkymark/v2-templates/blob/main/src/docker-code-server/main.tf)
lets the user choose VS Code Desktop, code-server or Zed.


![image](https://github.com/user-attachments/assets/cd0d4d50-fb7d-4feb-9a9b-5ccecc131387)


![image](https://github.com/user-attachments/assets/dfd994e8-52e1-4417-a5aa-3041f6dbf072)

@kylecarbs

---------

Co-authored-by: Edward Angert <EdwardAngert@users.noreply.github.com>
@EdwardAngert EdwardAngert added the docs Area: coder.com/docs label Apr 7, 2025
@EdwardAngert EdwardAngert self-assigned this Apr 7, 2025
@EdwardAngert EdwardAngert marked this pull request as ready for review April 7, 2025 15:58
Comment on lines 318 to 331
## Zed

Configure your agent and `coder_app` like to include a Zed 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

Choose a reason for hiding this comment

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

its not a web app but a Desktop IDE

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true

I moved it in eb1ad93

Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

Looks good now.

@EdwardAngert EdwardAngert merged commit 2f6682a into main Apr 7, 2025
33 checks passed
@EdwardAngert EdwardAngert deleted the 17236-zed-app branch April 7, 2025 18:00
@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
docs Area: coder.com/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants