Repository navigation
Commit 8111071
committed
Filter out response items targeting excluded folders
- In apply-response-command.ts, filter response_items immediately after parse_response is called to completely exclude any items where file_path or new_file_path starts with .git/, .vscode/, .devcontainer/, vendor/, or node_modules/.
- Refactor the file exclusion filter to check if any segment of the split `file_path` or `new_file_path` matches a Set of common dependency and build folders (like `.git`, `node_modules`, `vendor`, `.venv`, `dist`, `build`, `target`, `bin`, `obj`), replacing the current `startsWith` logic to support nested directories.
└── apps
└── editor
└── src
└── commands
└── apply-response-command
├── apply-response-command.ts
├── response-processor
│ ├── handlers
│ │ ├── diff-handler.ts
│ │ ├── fast-replace-handler.ts
│ │ ├── patch-repair-handler.ts
│ │ ├── restore-preview-handler.ts
│ │ └── truncated-handler.ts
│ └── response-processor.ts
├── types
│ └── original-file-state.ts
└── utils
├── file-operations
│ └── index.ts
├── preview
│ ├── file-preparer.ts
│ ├── preview.ts
│ ├── temp-file-manager.ts
│ └── workspace-listener.ts
├── preview-handler.ts
└── response-parser
├── index.ts
└── response-parser.ts1 parent 382c7b5 commit 8111071
1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
115 | 147 | | |
116 | 148 | | |
117 | 149 | | |
| |||
0 commit comments