Fixed the structure of createMCPConfigFile

This commit is contained in:
Joaquin Coromina 2025-05-13 02:37:54 -04:00
parent 1ed79ef985
commit 7af9973a8d

View file

@ -82,9 +82,8 @@ class MCPConfigService extends Disposable implements IMCPConfigService {
// Create the directory if it doesn't exist
await this.fileService.createFile(mcpConfigUri.with({ path: mcpConfigUri.path }));
const buffer = VSBuffer.fromString(this.MCP_CONFIG_SAMPLE_STRING);
// Create the MCP config file with default content
const buffer = VSBuffer.fromString(this.MCP_CONFIG_SAMPLE_STRING);
await this.fileService.writeFile(mcpConfigUri, buffer);
}
}