File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {getHostWorkspace} from '../../config.js';
1515import { zod } from '../../third_party/index.js' ;
1616import { ToolCategory } from '../categories.js' ;
1717import { defineTool } from '../ToolDefinition.js' ;
18- import { buildIgnoreContextJson } from './ignore-context.js' ;
18+ import { readIgnoreContext } from './ignore-context.js' ;
1919
2020// ── Dynamic Timeout Configuration ────────────────────────
2121// Timeout scales with request scope and complexity rather than
@@ -443,11 +443,14 @@ export const map = defineTool({
443443 ) ;
444444
445445 if ( overviewResult . summary . totalFiles === 0 ) {
446- const ignoredBy = buildIgnoreContextJson ( overviewResult . projectRoot ) ;
447- response . appendResponseLine ( '# Empty Result\n' ) ;
446+ const ignoreContext = readIgnoreContext ( overviewResult . projectRoot ) ;
447+ response . appendResponseLine ( `Root: ${ normalizePath ( overviewResult . projectRoot ) } \n` ) ;
448448 response . appendResponseLine ( 'No files found. Check scope patterns or .devtoolsignore.\n' ) ;
449- if ( ignoredBy ) {
450- response . appendResponseLine ( `Ignored by: ${ JSON . stringify ( ignoredBy ) } ` ) ;
449+ if ( ignoreContext . activePatterns . length > 0 ) {
450+ response . appendResponseLine ( 'Current .devtoolsignore patterns:\n' ) ;
451+ for ( const pattern of ignoreContext . activePatterns ) {
452+ response . appendResponseLine ( pattern ) ;
453+ }
451454 }
452455 return ;
453456 }
You can’t perform that action at this time.
0 commit comments