From 2187641cc30b3a31c1992735b6de432eadd4167c Mon Sep 17 00:00:00 2001 From: Joaquin Coromina Date: Tue, 13 May 2025 21:07:06 -0400 Subject: [PATCH] Updated all functions to be private initially --- .../contrib/void/common/mcpConfigService.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vs/workbench/contrib/void/common/mcpConfigService.ts b/src/vs/workbench/contrib/void/common/mcpConfigService.ts index 70f6e8af..da22cedd 100644 --- a/src/vs/workbench/contrib/void/common/mcpConfigService.ts +++ b/src/vs/workbench/contrib/void/common/mcpConfigService.ts @@ -16,8 +16,8 @@ import { VSBuffer } from '../../../../base/common/buffer.js'; export interface IMCPConfigService { readonly _serviceBrand: undefined; - getMCPConfigPath(): Promise; - // configFileExists(): Promise; + // _getMCPConfigPath(): Promise; + // _configFileExists(): Promise; } export const IMCPConfigService = createDecorator('mcpConfigService'); @@ -44,7 +44,7 @@ class MCPConfigService extends Disposable implements IMCPConfigService { private async _initialize() { // Check logs - const mcpExists = await this.configFileExists(); + const mcpExists = await this._configFileExists(); if (!mcpExists) { console.log('MCP Config file does not exist. Creating...'); await this._createMCPConfigFile(); @@ -54,7 +54,7 @@ class MCPConfigService extends Disposable implements IMCPConfigService { } - async getMCPConfigPath(): Promise { + private async _getMCPConfigPath(): Promise { // Get the appropriate directory based on dev mode const appName = this.productService.dataFolderName @@ -63,9 +63,9 @@ class MCPConfigService extends Disposable implements IMCPConfigService { return URI.file(mcpConfigPath); } - async configFileExists(): Promise { + private async _configFileExists(): Promise { try { - const mcpConfigUri = await this.getMCPConfigPath(); + const mcpConfigUri = await this._getMCPConfigPath(); // Try to get file stats - if it succeeds, the file exists await this.fileService.stat(mcpConfigUri); @@ -77,7 +77,7 @@ class MCPConfigService extends Disposable implements IMCPConfigService { } private async _createMCPConfigFile(): Promise { - const mcpConfigUri = await this.getMCPConfigPath(); + const mcpConfigUri = await this._getMCPConfigPath(); // Create the directory if it doesn't exist await this.fileService.createFile(mcpConfigUri.with({ path: mcpConfigUri.path }));