Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions registry/coder/modules/cursor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Uses the [Coder Remote VS Code Extension](https://github.com/coder/vscode-coder)
module "cursor" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/cursor/coder"
version = "1.0.19"
version = "1.1.0"
agent_id = coder_agent.example.id
}
```
Expand All @@ -30,7 +30,7 @@ module "cursor" {
module "cursor" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/cursor/coder"
version = "1.0.19"
version = "1.1.0"
agent_id = coder_agent.example.id
folder = "/home/coder/project"
}
Expand Down
16 changes: 14 additions & 2 deletions registry/coder/modules/cursor/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,27 @@ variable "order" {
default = null
}

variable "slug" {
type = string
description = "The slug of the app."
default = "cursor"
}

variable "display_name" {
type = string
description = "The display name of the app."
default = "Cursor Desktop"
}

data "coder_workspace" "me" {}
data "coder_workspace_owner" "me" {}

resource "coder_app" "cursor" {
agent_id = var.agent_id
external = true
icon = "/icon/cursor.svg"
slug = "cursor"
display_name = "Cursor Desktop"
slug = var.slug
display_name = var.display_name
order = var.order
url = join("", [
"cursor://coder.coder-remote/open",
Expand Down