Skip to content

feat(core): improve Cursor editor detection and extension installation#32374

Merged
FrozenPandaz merged 2 commits intomasterfrom
fix-cursor-install
Aug 19, 2025
Merged

feat(core): improve Cursor editor detection and extension installation#32374
FrozenPandaz merged 2 commits intomasterfrom
fix-cursor-install

Conversation

@FrozenPandaz
Copy link
Copy Markdown
Contributor

Summary

  • Add CURSOR_TRACE_ID environment variable detection for Cursor
  • Simplify get_env_var to be purely map-based for better testability
  • Add Cursor support to extension installation logic
  • Add test case for CURSOR_TRACE_ID detection

Test plan

  • All existing tests pass
  • New test case for CURSOR_TRACE_ID detection passes
  • Rust code compiles and passes clippy checks
  • Prepush validation passes

This ensures Nx Console extension can be properly installed in Cursor when the CURSOR_TRACE_ID environment variable is present, providing better support for Cursor users.

Fixes #[ISSUE_NUMBER]

@FrozenPandaz FrozenPandaz requested review from a team as code owners August 16, 2025 11:59
@FrozenPandaz FrozenPandaz requested a review from Cammisuli August 16, 2025 11:59
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 16, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 8e11dca
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68a072b9d73b100008cc69ee
😎 Deploy Preview https://deploy-preview-32374--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Aug 18, 2025 11:03pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Aug 16, 2025

View your CI Pipeline Execution ↗ for commit 2edfcd7

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 27m 37s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 31s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 5s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 4s View ↗
nx documentation ✅ Succeeded 1m 46s View ↗

☁️ Nx Cloud last updated this comment at 2025-08-18 23:12:41 UTC

@MaxKless
Copy link
Copy Markdown
Contributor

should we disable the cursor installation for linux? Because of the cursor --version issue?

- Add CURSOR_TRACE_ID environment variable detection for Cursor
- Simplify get_env_var to be purely map-based for better testability
- Add Cursor support to extension installation logic
- Add test case for CURSOR_TRACE_ID detection

This ensures Nx Console extension can be properly installed in Cursor
when the CURSOR_TRACE_ID environment variable is present.
The cursor command on Linux opens the IDE instead of running CLI
extension commands, causing installation failures. This change
disables extension installation for Cursor on Linux while keeping
it enabled for Windows and macOS.
@FrozenPandaz FrozenPandaz merged commit d22677f into master Aug 19, 2025
5 checks passed
@FrozenPandaz FrozenPandaz deleted the fix-cursor-install branch August 19, 2025 15:02
FrozenPandaz added a commit that referenced this pull request Aug 22, 2025
…#32374)

## Summary
- Add CURSOR_TRACE_ID environment variable detection for Cursor
- Simplify get_env_var to be purely map-based for better testability
- Add Cursor support to extension installation logic
- Add test case for CURSOR_TRACE_ID detection

## Test plan
- [x] All existing tests pass
- [x] New test case for CURSOR_TRACE_ID detection passes
- [x] Rust code compiles and passes clippy checks
- [x] Prepush validation passes

This ensures Nx Console extension can be properly installed in Cursor
when the CURSOR_TRACE_ID environment variable is present, providing
better support for Cursor users.

Fixes #[ISSUE_NUMBER]

(cherry picked from commit d22677f)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 25, 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