Sync upstream Gemini-CLI v0.8.2 (#838)

This commit is contained in:
tanzhenxin
2025-10-23 09:27:04 +08:00
committed by GitHub
parent 096fabb5d6
commit eb95c131be
644 changed files with 70389 additions and 23709 deletions

View File

@@ -1,30 +1,24 @@
# Local Development
# Local Development ⚙️
## Running the Extension
To run the extension locally for development:
To run the extension locally for development, we recommend using the automatic watch process for continuous compilation:
1. From the root of the repository, install dependencies:
1. **Install Dependencies** (from the root of the repository):
```bash
npm install
```
2. Open this directory (`packages/vscode-ide-companion`) in VS Code.
3. Compile the extension:
2. **Open in VS Code:** Open this directory (`packages/vscode-ide-companion`) in your VS Code editor.
3. **Start Watch Mode:** Run the watch script to compile the extension and monitor changes in both **esbuild** and **TypeScript**:
```bash
npm run compile
npm run watch
```
4. Press `F5` (fn+f5 on mac) to open a new Extension Development Host window with the extension running.
4. **Launch Host:** Press **`F5`** (or **`fn+F5`** on Mac) to open a new **Extension Development Host** window with the extension running.
To watch for changes and have the extension rebuild automatically, run:
### Manual Build
If you only need to compile the extension once without watching for changes:
```bash
npm run watch
```
## Running Tests
To run the automated tests, run:
```bash
npm run test
npm run build
```