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

continuation of #17236  (thanks @sharkymark )

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



[preview](https://coder.com/docs/@17236-zed-app/admin/templates/extending-templates#coder-app-examples)

---------

Co-authored-by: sharkymark <mtm20176@gmail.com>
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
This commit is contained in:
Edward Angert
2025-04-07 14:00:43 -04:00
committed by GitHub
parent d312e82a51
commit 2f6682a46f

View File

@ -87,6 +87,55 @@ and can be hidden directly in the
resource. You can arrange the display orientation of Coder apps in your template resource. You can arrange the display orientation of Coder apps in your template
using [resource ordering](./resource-ordering.md). using [resource ordering](./resource-ordering.md).
### Coder app examples
<div class="tabs">
You can use these examples to add new Coder apps:
## code-server
```hcl
resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
slug = "code-server"
display_name = "code-server"
url = "http://localhost:13337/?folder=/home/${local.username}"
icon = "/icon/code.svg"
subdomain = false
share = "owner"
}
```
## Filebrowser
```hcl
resource "coder_app" "filebrowser" {
agent_id = coder_agent.main.id
display_name = "file browser"
slug = "filebrowser"
url = "http://localhost:13339"
icon = "/icon/database.svg"
subdomain = true
share = "owner"
}
```
## Zed
```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"
}
```
</div>
Check out our [module registry](https://registry.coder.com/modules) for Check out our [module registry](https://registry.coder.com/modules) for
additional Coder apps from the team and our OSS community. additional Coder apps from the team and our OSS community.