@@ -77,7 +77,7 @@ const DEFAULT_CONFIG_TEMPLATE = `// VS Code DevTools MCP configuration (JSONC)
7777 "devDiagnostic": false,
7878
7979 // Write logs to a file (absolute or relative path).
80- // "logFile": ".devtools/devtools-mcp.log",
80+ // Logs are written to stderr and appear in VS Code's MCP output channel.
8181
8282 // Run VS Code headless (Linux only).
8383 "headless": false,
@@ -134,9 +134,6 @@ export interface DevToolsConfig {
134134 /** Enable diagnostic tools (debug_evaluate) */
135135 devDiagnostic ?: boolean ;
136136
137- /** Path to log file (relative to workspace or absolute) */
138- logFile ?: string ;
139-
140137 /** Run VS Code headless (Linux only) */
141138 headless ?: boolean ;
142139
@@ -162,7 +159,6 @@ export interface ResolvedConfig {
162159 /** True when the extension dev path was explicitly supplied via CLI args. */
163160 explicitExtensionDevelopmentPath : boolean ;
164161 devDiagnostic : boolean ;
165- logFile ?: string ;
166162 headless : boolean ;
167163 experimentalVision : boolean ;
168164 experimentalStructuredContent : boolean ;
@@ -214,9 +210,6 @@ function coerceDevToolsConfig(value: unknown): DevToolsConfig {
214210 const devDiagnostic = readOptionalBoolean ( value , 'devDiagnostic' ) ;
215211 if ( typeof devDiagnostic === 'boolean' ) { config . devDiagnostic = devDiagnostic ; }
216212
217- const logFile = readOptionalString ( value , 'logFile' ) ;
218- if ( logFile ) { config . logFile = logFile ; }
219-
220213 const headless = readOptionalBoolean ( value , 'headless' ) ;
221214 if ( typeof headless === 'boolean' ) { config . headless = headless ; }
222215
@@ -393,7 +386,6 @@ export function loadConfig(cliArgs: {
393386 extensionBridgePath ?: string ;
394387 targetFolder ?: string ;
395388 devDiagnostic ?: boolean ;
396- logFile ?: string ;
397389 headless ?: boolean ;
398390 experimentalVision ?: boolean ;
399391 experimentalStructuredContent ?: boolean ;
@@ -459,18 +451,12 @@ export function loadConfig(cliArgs: {
459451 extensionBridgePath = getDefaultExtensionPath ( ) ;
460452 }
461453
462- // Resolve log file path
463- const logFile =
464- cliArgs . logFile ??
465- resolvePath ( absoluteWorkspace , fileConfig . logFile ) ;
466-
467454 return {
468455 hostWorkspace : getHostWorkspace ( ) ,
469456 workspaceFolder : absoluteWorkspace ,
470457 extensionBridgePath,
471458 explicitExtensionDevelopmentPath,
472459 devDiagnostic : cliArgs . devDiagnostic ?? fileConfig . devDiagnostic ?? false ,
473- logFile,
474460 headless : cliArgs . headless ?? fileConfig . headless ?? false ,
475461 experimentalVision :
476462 cliArgs . experimentalVision ?? fileConfig . experimentalVision ?? false ,
0 commit comments