Skip to content

misc: Add Cursor IDE to Cypress recognized file editors #31691

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

Merged
merged 4 commits into from
May 13, 2025

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented May 12, 2025

Additional details

I realized Cypress doesn't look for Cursor IDE when selecting an IDE to open files with - and didn't want to find the Application's install path. So I added Cursor as supported.

I couldn't find a logo for cursor that was within our existing icon dependency, so I just defaulted to a generic icon which I think is better than notthing.

Steps to test

  • With cursor installed, run yarn cypress:open with your preferredEditorBinary cleared from your __global__ preferences.

How has the user experience changed?

Before

Screenshot 2025-05-12 at 3 16 34 PM

After

Screenshot 2025-05-12 at 3 59 07 PM

PR Tasks

Copy link

cypress bot commented May 12, 2025

cypress    Run #62381

Run Properties:  status check passed Passed #62381  •  git commit 2d776a665a: Merge branch 'develop' into expand-ide-recognition
Project cypress
Branch Review expand-ide-recognition
Run status status check passed Passed #62381
Run duration 18m 58s
Commit git commit 2d776a665a: Merge branch 'develop' into expand-ide-recognition
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 13
Tests that did not run due to a developer annotating a test with .skip  Pending 1232
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32159
View all changes introduced in this branch ↗︎
UI Coverage  45.83%
  Untested elements 190  
  Tested elements 165  
Accessibility  92.74%
  Failed rules  3 critical   9 serious   2 moderate   2 minor
  Failed elements 697  

@jennifer-shehane jennifer-shehane self-assigned this May 12, 2025
@@ -95,7 +95,7 @@ const icons: Record<string, FunctionalComponent<SVGAttributes, {}>> = {
const customEditor = { id: 'custom', icon: Terminal, name: 'Custom', binary: 'custom' }

const editorOptions = computed(() => {
const editors = props.gql.localSettings.availableEditors?.map((x) => ({ ...x, icon: icons[x.id] })) || []
const editors = props.gql.localSettings.availableEditors?.map((x) => ({ ...x, icon: icons[x.id] ?? icons['custom'] })) || []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not possible to utilize a Cursor icon?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find one in the icon library that we're currently using. It just doesn't seem worth the effort to track down and get in. The icons in our vue components are pretty gnarly.

@jennifer-shehane jennifer-shehane merged commit 435422f into develop May 13, 2025
89 of 91 checks passed
@jennifer-shehane jennifer-shehane deleted the expand-ide-recognition branch May 13, 2025 16:12
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 20, 2025

Released in 14.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.4.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators May 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants