summaryrefslogtreecommitdiff
path: root/packages/vscode-ide-companion/src/ide-server.ts
diff options
context:
space:
mode:
authorchristine betts <[email protected]>2025-07-25 17:46:55 +0000
committerGitHub <[email protected]>2025-07-25 17:46:55 +0000
commit1b8ba5ca6bf739e4100a1d313721988f953acb49 (patch)
tree9dea66f108d427edc6284e1ea38b5883d8e82881 /packages/vscode-ide-companion/src/ide-server.ts
parent3c16429fc4b8102b7ea44c5b2842507e3a99ec72 (diff)
[ide-mode] Create an IDE manager class to handle connecting to and exposing methods from the IDE server (#4797)
Diffstat (limited to 'packages/vscode-ide-companion/src/ide-server.ts')
-rw-r--r--packages/vscode-ide-companion/src/ide-server.ts29
1 files changed, 0 insertions, 29 deletions
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;
};