mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(examples): remove vscode-desktop module from quickstart to avoid duplicate VS Code Desktop (#26789)
The Quickstart template offered a "VS Code Desktop" editor option backed by the `vscode-desktop` module, which produced two "VS Code Desktop" buttons in the workspace view. Coder already enables the VS Code Desktop display app for every workspace by default via [`DefaultDisplayApps()` in `provisionersdk/agent.go`](https://github.com/coder/coder/blob/c782cbce77b08c0d031a7131a05f5babd762519f/provisionersdk/agent.go#L58-L65) (`Vscode: true`), so the module was redundant and is the source of the duplicate. This removes the `vscode-desktop` module and its editor option, and updates the README to note that VS Code Desktop is available by default. The browser-based `code-server`, Cursor, JetBrains, Zed, and Windsurf options are unchanged. `examples.gen.json` is regenerated. Closes #26788 --- *Generated by Coder Agents on behalf of @bpmct.*
This commit is contained in:
@@ -16,7 +16,7 @@ Get up and running with Coder in minutes. Choose your programming languages, pic
|
||||
When you create a workspace from this template, you select:
|
||||
|
||||
1. **Languages** to pre-install (Python, Node.js, Go, Rust, Java, C/C++)
|
||||
2. **Editors** to connect (VS Code in the browser, VS Code Desktop, Cursor, JetBrains, Zed, Windsurf)
|
||||
2. **Editors** to connect (VS Code in the browser, Cursor, JetBrains, Zed, Windsurf)
|
||||
3. **A Git repository** to clone (optional)
|
||||
|
||||
Coder provisions a workspace with your selections and you can start developing immediately.
|
||||
@@ -59,6 +59,7 @@ Select a preset to auto-fill languages and editors for common workflows:
|
||||
## IDE Notes
|
||||
|
||||
- **VS Code (Browser)**: Opens directly in your browser with no local install required.
|
||||
- **VS Code Desktop, Cursor, Windsurf**: Require the desktop application installed on your local machine. Coder opens them via protocol handler.
|
||||
- **VS Code Desktop**: Available on every workspace by default (Coder enables the VS Code Desktop display app automatically), so it is not listed as a separate editor option.
|
||||
- **Cursor, Windsurf**: Require the desktop application installed on your local machine. Coder opens them via protocol handler.
|
||||
- **JetBrains IDEs**: Filtered by your language selection (e.g. PyCharm for Python, GoLand for Go). Requires JetBrains Toolbox or Gateway on your local machine.
|
||||
- **Zed**: Connects over SSH. Requires Zed installed on your local machine.
|
||||
|
||||
@@ -87,11 +87,6 @@ data "coder_parameter" "ides" {
|
||||
value = "code-server"
|
||||
icon = "/icon/code.svg"
|
||||
}
|
||||
option {
|
||||
name = "VS Code Desktop"
|
||||
value = "vscode-desktop"
|
||||
icon = "/icon/code.svg"
|
||||
}
|
||||
option {
|
||||
name = "Cursor"
|
||||
value = "cursor"
|
||||
@@ -283,14 +278,6 @@ module "code-server" {
|
||||
order = 1
|
||||
}
|
||||
|
||||
module "vscode-desktop" {
|
||||
count = data.coder_workspace.me.start_count * (contains(local.ides, "vscode-desktop") ? 1 : 0)
|
||||
source = "registry.coder.com/coder/vscode-desktop/coder"
|
||||
version = "~> 1.0"
|
||||
agent_id = coder_agent.main.id
|
||||
folder = "/home/coder"
|
||||
order = 2
|
||||
}
|
||||
|
||||
module "cursor" {
|
||||
count = data.coder_workspace.me.start_count * (contains(local.ides, "cursor") ? 1 : 0)
|
||||
|
||||
Reference in New Issue
Block a user