From 1b8ba5ca6bf739e4100a1d313721988f953acb49 Mon Sep 17 00:00:00 2001 From: christine betts Date: Fri, 25 Jul 2025 17:46:55 +0000 Subject: [ide-mode] Create an IDE manager class to handle connecting to and exposing methods from the IDE server (#4797) --- packages/vscode-ide-companion/src/ide-server.ts | 29 ------------------------- 1 file changed, 29 deletions(-) (limited to 'packages/vscode-ide-companion') diff --git a/packages/vscode-ide-companion/src/ide-server.ts b/packages/vscode-ide-companion/src/ide-server.ts index 3072029b..f47463ba 100644 --- a/packages/vscode-ide-companion/src/ide-server.ts +++ b/packages/vscode-ide-companion/src/ide-server.ts @@ -244,34 +244,5 @@ const createMcpServer = () => { }, { capabilities: { logging: {} } }, ); - server.registerTool( - 'getOpenFiles', - { - description: - '(IDE Tool) Get the path of the file currently active in VS Code.', - inputSchema: {}, - }, - async () => { - const editor = vscode.window.activeTextEditor; - const filePath = - editor && editor.document.uri.scheme === 'file' - ? editor.document.uri.fsPath - : ''; - if (filePath) { - return { - content: [{ type: 'text', text: `Active file: ${filePath}` }], - }; - } else { - return { - content: [ - { - type: 'text', - text: 'No file is currently active in the editor.', - }, - ], - }; - } - }, - ); return server; }; -- cgit v1.2.3