feat: codebuddy support #133
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Support for CodeBuddy (buddy/buddycn) Editor
📋 Summary
This PR adds native support for CodeBuddy editor (commands:
buddyandbuddycn) to thelaunchEditorconfiguration option.🎯 Motivation
CodeBuddy is an AI-powered code editor developed by Tencent that uses the same CLI syntax as VS Code for opening files with line and column positioning. Currently, users need to create custom wrapper scripts to use CodeBuddy with this plugin. This PR simplifies the setup by adding first-class support for both
buddyandbuddycncommands.🔧 Changes
1. Type Definitions
'buddy'and'buddycn'to thelaunchEditoroption type in:packages/core/src/index.ts2. Documentation
💡 Editor Compatibility
CodeBuddy uses the same command-line interface as VS Code:
Key CLI option:
-g --goto <file:line[:character]>: Open a file at the path on the specified line and character positionThis makes CodeBuddy fully compatible with the existing
launch-editorinfrastructure without requiring any additional code changes beyond type definitions.📦 Usage Examples
Method 1: Direct Configuration (Recommended)
Method 2: Environment Variable
✅ Testing
🔗 References
buddy(international version),buddycn(China version)-g file:line:column)📝 Additional Notes
CodeBuddy is available in two variants:
buddy: International version - https://www.codebuddy.ai/buddycn: China localized version (CodeBuddy CN / Tencent Copilot IDE) - https://copilot.tencent.com/ide/Both use identical CLI syntax and can be configured interchangeably based on the user's installed version.
This change improves developer experience by eliminating the need for custom wrapper scripts when using CodeBuddy editor with this plugin.