diff options
| author | Shreya Keshive <[email protected]> | 2025-08-12 17:08:07 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-12 21:08:07 +0000 |
| commit | 3a87712c1a15dac9f0a717b40fbf9e59398177ca (patch) | |
| tree | 44a0f199403b5b366d80bc8caf2b5d63242acba1 /packages/core/src/tools | |
| parent | d219f9013206aad5a1361e436ad4a45114e9cd49 (diff) | |
Launch VS Code IDE Integration (#6063)
Diffstat (limited to 'packages/core/src/tools')
| -rw-r--r-- | packages/core/src/tools/edit.test.ts | 2 | ||||
| -rw-r--r-- | packages/core/src/tools/edit.ts | 1 | ||||
| -rw-r--r-- | packages/core/src/tools/write-file.test.ts | 1 | ||||
| -rw-r--r-- | packages/core/src/tools/write-file.ts | 1 |
4 files changed, 0 insertions, 5 deletions
diff --git a/packages/core/src/tools/edit.test.ts b/packages/core/src/tools/edit.test.ts index 3e0dba61..b2e31fdd 100644 --- a/packages/core/src/tools/edit.test.ts +++ b/packages/core/src/tools/edit.test.ts @@ -62,7 +62,6 @@ describe('EditTool', () => { getWorkspaceContext: () => createMockWorkspaceContext(rootDir), getIdeClient: () => undefined, getIdeMode: () => false, - getIdeModeFeature: () => false, // getGeminiConfig: () => ({ apiKey: 'test-api-key' }), // This was not a real Config method // Add other properties/methods of Config if EditTool uses them // Minimal other methods to satisfy Config type if needed by EditTool constructor or other direct uses: @@ -810,7 +809,6 @@ describe('EditTool', () => { }), }; (mockConfig as any).getIdeMode = () => true; - (mockConfig as any).getIdeModeFeature = () => true; (mockConfig as any).getIdeClient = () => ideClient; }); diff --git a/packages/core/src/tools/edit.ts b/packages/core/src/tools/edit.ts index 86641300..e2b517cf 100644 --- a/packages/core/src/tools/edit.ts +++ b/packages/core/src/tools/edit.ts @@ -250,7 +250,6 @@ class EditToolInvocation implements ToolInvocation<EditToolParams, ToolResult> { ); const ideClient = this.config.getIdeClient(); const ideConfirmation = - this.config.getIdeModeFeature() && this.config.getIdeMode() && ideClient?.getConnectionStatus().status === IDEConnectionStatus.Connected ? ideClient.openDiff(this.params.file_path, editData.newContent) diff --git a/packages/core/src/tools/write-file.test.ts b/packages/core/src/tools/write-file.test.ts index 1967b99b..06561602 100644 --- a/packages/core/src/tools/write-file.test.ts +++ b/packages/core/src/tools/write-file.test.ts @@ -58,7 +58,6 @@ const mockConfigInternal = { getGeminiClient: vi.fn(), // Initialize as a plain mock function getIdeClient: vi.fn(), getIdeMode: vi.fn(() => false), - getIdeModeFeature: vi.fn(() => false), getWorkspaceContext: () => createMockWorkspaceContext(rootDir), getApiKey: () => 'test-key', getModel: () => 'test-model', diff --git a/packages/core/src/tools/write-file.ts b/packages/core/src/tools/write-file.ts index 5cdba419..72aeba6d 100644 --- a/packages/core/src/tools/write-file.ts +++ b/packages/core/src/tools/write-file.ts @@ -195,7 +195,6 @@ export class WriteFileTool const ideClient = this.config.getIdeClient(); const ideConfirmation = - this.config.getIdeModeFeature() && this.config.getIdeMode() && ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected ? ideClient.openDiff(params.file_path, correctedContent) |
