diff --git a/packages/vscode-ide-companion/README.md b/packages/vscode-ide-companion/README.md index 2814255b..a5e4980d 100644 --- a/packages/vscode-ide-companion/README.md +++ b/packages/vscode-ide-companion/README.md @@ -40,10 +40,6 @@ To debug and develop this extension locally: 3. **Start debugging** - You have two options: - - **Option A: Debug from Project Root (Recommended)** - ```bash code . # Open the project root in VS Code ``` @@ -52,19 +48,6 @@ To debug and develop this extension locally: - Select **"Launch Companion VS Code Extension"** from the debug dropdown - Press `F5` to launch Extension Development Host - **Option B: Debug from Extension Directory** - - ```bash - cd packages/vscode-ide-companion - code . # Open the extension directory in VS Code - ``` - - Open the `src/extension.ts` file - - Open Debug panel (`Ctrl+Shift+D` or `Cmd+Shift+D`) - - Select **"Run Extension"** from the debug dropdown - - Press `F5` to launch Extension Development Host - - > 💡 **Tip**: Option A is recommended if you need to debug both the extension and core packages together. - 4. **Make changes and reload** - Edit the source code in the original VS Code window - To see your changes, reload the Extension Development Host window by: diff --git a/packages/vscode-ide-companion/src/extension.test.ts b/packages/vscode-ide-companion/src/extension.test.ts index 2560881d..31d5aa52 100644 --- a/packages/vscode-ide-companion/src/extension.test.ts +++ b/packages/vscode-ide-companion/src/extension.test.ts @@ -40,6 +40,9 @@ vi.mock('vscode', () => ({ }, showTextDocument: vi.fn(), showWorkspaceFolderPick: vi.fn(), + registerWebviewPanelSerializer: vi.fn(() => ({ + dispose: vi.fn(), + })), }, workspace: { workspaceFolders: [],