From 492c56a7807a7d81454a157eca6577e7fad47932 Mon Sep 17 00:00:00 2001 From: yiliang114 <1204183885@qq.com> Date: Thu, 20 Nov 2025 14:31:20 +0800 Subject: [PATCH] =?UTF-8?q?test(vscode-ide-companion):=20registerWebviewPa?= =?UTF-8?q?nelSerializer=20=E6=B7=BB=E5=8A=A0=20mock=20=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vscode-ide-companion/README.md | 17 ----------------- .../vscode-ide-companion/src/extension.test.ts | 3 +++ 2 files changed, 3 insertions(+), 17 deletions(-) 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: [],