summaryrefslogtreecommitdiff
path: root/packages/core/src/ide/ide-client.ts
diff options
context:
space:
mode:
authorShreya Keshive <[email protected]>2025-07-28 11:03:22 -0400
committerGitHub <[email protected]>2025-07-28 15:03:22 +0000
commite2754416516edb8c27e63cee5b249f41c3e0fffc (patch)
treee00ee188509ce7f0b4f353cf6e08d0422490fe72 /packages/core/src/ide/ide-client.ts
parentf2e006179d27af34c35b58b1df3032e351e61eaf (diff)
Updates schema, UX and prompt for IDE context (#5046)
Diffstat (limited to 'packages/core/src/ide/ide-client.ts')
-rw-r--r--packages/core/src/ide/ide-client.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/core/src/ide/ide-client.ts b/packages/core/src/ide/ide-client.ts
index 3f91f386..64264fd1 100644
--- a/packages/core/src/ide/ide-client.ts
+++ b/packages/core/src/ide/ide-client.ts
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import { ideContext, OpenFilesNotificationSchema } from '../ide/ideContext.js';
+import { ideContext, IdeContextNotificationSchema } from '../ide/ideContext.js';
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -77,20 +77,20 @@ export class IdeClient {
await this.client.connect(transport);
this.client.setNotificationHandler(
- OpenFilesNotificationSchema,
+ IdeContextNotificationSchema,
(notification) => {
- ideContext.setOpenFilesContext(notification.params);
+ ideContext.setIdeContext(notification.params);
},
);
this.client.onerror = (error) => {
logger.debug('IDE MCP client error:', error);
this.connectionStatus = IDEConnectionStatus.Disconnected;
- ideContext.clearOpenFilesContext();
+ ideContext.clearIdeContext();
};
this.client.onclose = () => {
logger.debug('IDE MCP client connection closed.');
this.connectionStatus = IDEConnectionStatus.Disconnected;
- ideContext.clearOpenFilesContext();
+ ideContext.clearIdeContext();
};
this.connectionStatus = IDEConnectionStatus.Connected;