fix: detect Cursor editor via appName instead of extension ID#662
fix: detect Cursor editor via appName instead of extension ID#662breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom fix/cursor-detectionbreaking-brake/cc-wf-studio:fix/cursor-detectionCopy head branch name to clipboard
Conversation
- Cursor Agent is built-in, not a separate extension - Use vscode.env.appName/uriScheme for detection Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughRefactored cursor installation detection in the extension service by replacing extension registry lookup with environment-based detection that checks VS Code's Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
## [3.30.0](v3.29.2...v3.30.0) (2026-03-19) ### Features * add group node highlight toggle, MCP improvements, and bug fixes ([#661](#661)) ([5158e37](5158e37)) ### Bug Fixes * detect Cursor editor via appName instead of extension ID ([#662](#662)) ([ffbb163](ffbb163)) * support plugin agents in workflow detection and export ([#651](#651)) ([#663](#663)) ([3aa2023](3aa2023))
|
🎉 This PR is included in version 3.30.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Problem
Clicking the "Run for Cursor" button in the Toolbar shows "Cursor extension is not installed" even when running inside Cursor.
Current Behavior
Expected Behavior
Solution
The previous detection logic checked for a VSCode extension with ID
anysphere.cursor-agent, but Cursor's Agent is a built-in feature of the Cursor editor (a VSCode fork), not a separately installed extension.Changed detection to use
vscode.env.appNameandvscode.env.uriSchemeto identify the Cursor environment.Changes
File:
src/extension/services/cursor-extension-service.tsvscode.extensions.getExtension('anysphere.cursor-agent')withvscode.env.appName/vscode.env.uriSchemecheckstartCursorTask()to useisCursorInstalled()instead of direct extension lookup and activationImpact
Testing
npm run format && npm run lint && npm run build)🤖 Generated with Claude Code
Summary by CodeRabbit