diff --git a/README.md b/README.md index 8165cef..6982e10 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ interface VitePluginInspectorOptions { * * @default code (Visual Studio Code) */ - launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'cursor' + launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'cursor' | 'buddy' | 'buddycn' } ``` @@ -201,6 +201,8 @@ interface VitePluginInspectorOptions { | `visualstudio` | [Visual Studio](https://www.visualstudio.com/vs/) | | |✓| | `webstorm` | [WebStorm](https://www.jetbrains.com/webstorm/) |✓|✓|✓| | `cursor` | [Cursor](https://www.cursor.com/) |✓|✓|✓| +| `buddy` | [CodeBuddy](https://www.codebuddy.ai/) |✓|✓|✓| +| `buddycn` | [CodeBuddy CN](https://copilot.tencent.com/ide/) |✓|✓|✓| ## 🔌 Configuration IDE / Editor @@ -292,6 +294,28 @@ export LAUNCH_EDITOR=vim
+### CodeBuddy CN + +- install CodeBuddy CN command line tools (usually automatically installed) + +- then set env to shell, like `.bashrc` or `.zshrc` + + ```bash + export LAUNCH_EDITOR=buddycn + ``` + +**OR** + +- just set env with an absolute path to shell (MacOS example) + + ```bash + export LAUNCH_EDITOR='/Users/YOUR_USERNAME/.codebuddy/bin/buddycn' + ``` + +> Note: Replace `YOUR_USERNAME` with your actual username. CodeBuddy CN uses the same `-g file:line:column` syntax as VS Code. + +
+ ## 💡 Notice - **[BREAKING CHANGE] From v1.0, `enabled` option default value changed from `true` to `false` .** diff --git a/packages/core/README.md b/packages/core/README.md index 8165cef..6982e10 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -168,7 +168,7 @@ interface VitePluginInspectorOptions { * * @default code (Visual Studio Code) */ - launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'cursor' + launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'cursor' | 'buddy' | 'buddycn' } ``` @@ -201,6 +201,8 @@ interface VitePluginInspectorOptions { | `visualstudio` | [Visual Studio](https://www.visualstudio.com/vs/) | | |✓| | `webstorm` | [WebStorm](https://www.jetbrains.com/webstorm/) |✓|✓|✓| | `cursor` | [Cursor](https://www.cursor.com/) |✓|✓|✓| +| `buddy` | [CodeBuddy](https://www.codebuddy.ai/) |✓|✓|✓| +| `buddycn` | [CodeBuddy CN](https://copilot.tencent.com/ide/) |✓|✓|✓| ## 🔌 Configuration IDE / Editor @@ -292,6 +294,28 @@ export LAUNCH_EDITOR=vim
+### CodeBuddy CN + +- install CodeBuddy CN command line tools (usually automatically installed) + +- then set env to shell, like `.bashrc` or `.zshrc` + + ```bash + export LAUNCH_EDITOR=buddycn + ``` + +**OR** + +- just set env with an absolute path to shell (MacOS example) + + ```bash + export LAUNCH_EDITOR='/Users/YOUR_USERNAME/.codebuddy/bin/buddycn' + ``` + +> Note: Replace `YOUR_USERNAME` with your actual username. CodeBuddy CN uses the same `-g file:line:column` syntax as VS Code. + +
+ ## 💡 Notice - **[BREAKING CHANGE] From v1.0, `enabled` option default value changed from `true` to `false` .** diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index ac0ab2f..bfdb82c 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -109,7 +109,7 @@ export interface VitePluginInspectorOptions { * * @default process.env.LAUNCH_EDITOR ?? code (Visual Studio Code) */ - launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'rider' | 'cursor' | string + launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'rider' | 'cursor' | 'buddy' | 'buddycn' | string /** * Disable animation/transition, will auto disable when `prefers-reduced-motion` is set diff --git a/packages/unplugin/README.md b/packages/unplugin/README.md index 5309aee..806f60f 100644 --- a/packages/unplugin/README.md +++ b/packages/unplugin/README.md @@ -168,7 +168,7 @@ interface VitePluginInspectorOptions { * * @default code (Visual Studio Code) */ - launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'cursor' + launchEditor?: 'appcode' | 'atom' | 'atom-beta' | 'brackets' | 'clion' | 'code' | 'code-insiders' | 'codium' | 'emacs' | 'idea' | 'notepad++' | 'pycharm' | 'phpstorm' | 'rubymine' | 'sublime' | 'vim' | 'visualstudio' | 'webstorm' | 'cursor' | 'buddy' | 'buddycn' } ``` @@ -201,6 +201,8 @@ interface VitePluginInspectorOptions { | `visualstudio` | [Visual Studio](https://www.visualstudio.com/vs/) | | |✓| | `webstorm` | [WebStorm](https://www.jetbrains.com/webstorm/) |✓|✓|✓| | `cursor` | [Cursor](https://www.cursor.com/) |✓|✓|✓| +| `buddy` | [CodeBuddy](https://www.codebuddy.ai/) |✓|✓|✓| +| `buddycn` | [CodeBuddy CN](https://copilot.tencent.com/ide/) |✓|✓|✓| ## 🔌 Configuration IDE / Editor @@ -293,6 +295,28 @@ export LAUNCH_EDITOR=vim
+### CodeBuddy CN + +- install CodeBuddy CN command line tools (usually automatically installed) + +- then set env to shell, like `.bashrc` or `.zshrc` + + ```bash + export LAUNCH_EDITOR=buddycn + ``` + +**OR** + +- just set env with an absolute path to shell (MacOS example) + + ```bash + export LAUNCH_EDITOR='/Users/YOUR_USERNAME/.codebuddy/bin/buddycn' + ``` + +> Note: Replace `YOUR_USERNAME` with your actual username. CodeBuddy CN uses the same `-g file:line:column` syntax as VS Code. + +
+ ## 💡 Notice - **[BREAKING CHANGE] From v1.0, `enabled` option default value changed from `true` to `false` .**