-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat(cursor): Add Cursor IDE module #290
Conversation
This commit introduces the Cursor IDE module, allowing users to add a one-click button for launching Cursor IDE into their workspaces. The module is designed to work with Terraform, making it straightforward to manage and configure through infrastructure as code. - Adds a comprehensive README for setting up the module. - Includes example configurations for typical usage scenarios. - Provides automated tests to ensure module reliability. - Defines Terraform resources and variables to handle essential configurations like agent ID, folder locations, and order in the UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to test please add the follwing snippet to your template
module "cursor" {
source = "git::https://github.com/coder/modules.git//cursor?ref=cursor"
agent_id = coder_agent.example.id
}
Add explicit naming for the `coder_app` resource and output to reflect the switch from "VS Code Desktop" to "Cursor IDE."
Using this in my workspace, on the first attempt my healthy workspace returned a 404, offered to retry. Second attempt retires the connection many times before failing again. Icon still shows VSCode. |
cursor/main.tf
Outdated
resource "coder_app" "cursor" { | ||
agent_id = var.agent_id | ||
external = true | ||
icon = "/icon/code.svg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code icon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs adding the icon to coder/coder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
# Cursor IDE | ||
|
||
Add a button to open any workspace with a single click in Cursor IDE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Requires the local Coder VSCode extension. You can import this extension into Cursor."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am unable to reproduce both of these behaviours with and without the coderpremote extension pre installed. |
Works fine now on both MacOS and Windows, maybe it was an issue with my local cursor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
This PR introduces the Cursor IDE module, allowing users to add
a one-click button for launching Cursor IDE into their workspaces.
commit generetaed by aicommit