From c7f66d3fc4027d7181cd8794258dad91fb83a0af Mon Sep 17 00:00:00 2001 From: Phil Hachey Date: Fri, 9 May 2025 14:54:43 +0000 Subject: [PATCH 1/2] fix(cursor): added new variables to cursor module * Added `slug` variable to cursor module * Added `display_name` variable to cursor module --- registry/coder/modules/cursor/main.tf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/cursor/main.tf b/registry/coder/modules/cursor/main.tf index f350f942..89b320f7 100644 --- a/registry/coder/modules/cursor/main.tf +++ b/registry/coder/modules/cursor/main.tf @@ -32,6 +32,18 @@ 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" {} @@ -39,8 +51,8 @@ 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", From 61828732f02773d1dee9f00bb0ccb760b2520d0f Mon Sep 17 00:00:00 2001 From: Phil Hachey Date: Wed, 14 May 2025 17:00:36 +0000 Subject: [PATCH 2/2] fix(cursor): updated version of cursor module to 1.1.0 --- registry/coder/modules/cursor/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/cursor/README.md b/registry/coder/modules/cursor/README.md index 6499d5ca..cd7116ae 100644 --- a/registry/coder/modules/cursor/README.md +++ b/registry/coder/modules/cursor/README.md @@ -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 } ``` @@ -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" }