From 0074189191d2a03f4fff1b7894ee6b8fc567f82e Mon Sep 17 00:00:00 2001 From: Joaquin Coromina Date: Thu, 15 May 2025 22:28:14 -0400 Subject: [PATCH] Removed mcpService from common because it was supposed to handle setting up the servers but can't because of a lack of access to node dependencies --- .../contrib/void/common/mcpService.ts | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/vs/workbench/contrib/void/common/mcpService.ts diff --git a/src/vs/workbench/contrib/void/common/mcpService.ts b/src/vs/workbench/contrib/void/common/mcpService.ts deleted file mode 100644 index ebe3abb4..00000000 --- a/src/vs/workbench/contrib/void/common/mcpService.ts +++ /dev/null @@ -1,49 +0,0 @@ -/*-------------------------------------------------------------------------------------- - * Copyright 2025 Glass Devtools, Inc. All rights reserved. - * Licensed under the Apache License, Version 2.0. See LICENSE.txt for more information. - *--------------------------------------------------------------------------------------*/ - -import { Disposable } from '../../../../base/common/lifecycle.js'; -import { registerSingleton, InstantiationType } from '../../../../platform/instantiation/common/extensions.js'; -import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js'; - -export interface IMCPService { - readonly _serviceBrand: undefined; -} - -export const IMCPService = createDecorator('mcpConfigService'); - -class MCPService extends Disposable implements IMCPService { - _serviceBrand: undefined; - - // TODO: ADD MCP VARIABLES AND MEMORY HERE - - constructor( - ) { - super(); - this._initialize(); - } - - // This method is called when the service is disposed - override dispose(): void { - // Custom cleanup logic goes here - console.log('MCPService is being disposed'); - - // Always call the parent class dispose method to ensure proper cleanup - super.dispose(); - } - - - - private async _initialize() { - try { - console.log('MCPService initialized') - } catch (error) { - console.error('Error initializing MCPService:', error); - } - } - - // TODO: ADD MCP FUNCTIONS HERE -} - -registerSingleton(IMCPService, MCPService, InstantiationType.Delayed);