feat: rename ignored_files_regex to excluded_file_patterns and update descriptions for clarity

This commit is contained in:
Martim Pimentel
2025-05-22 19:28:37 +01:00
parent 75fd5e83e0
commit fef360664e
2 changed files with 6 additions and 4 deletions

View File

@ -2476,8 +2476,8 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
args.straight
);
if (args.ignored_files_regex?.length) {
const regexPatterns = args.ignored_files_regex.map(pattern => new RegExp(pattern));
if (args.excluded_file_patterns?.length) {
const regexPatterns = args.excluded_file_patterns.map(pattern => new RegExp(pattern));
// Helper function to check if a path matches any regex pattern
const matchesAnyPattern = (path: string): boolean => {