Repository navigation
Commit 2c6b0d6
committed
Integrate workspace provider into preview listeners to filter out ignored and excluded files
- Pass workspace_provider into setup_workspace_listeners in workspace-listener.ts (via preview.ts) and skip adding untracked files in onDidChangeTextDocument, onDidCreateFiles, onDidDeleteFiles, and onDidRenameFiles if workspace_provider.is_ignored_by_patterns(file_path) or workspace_provider.is_excluded(relative_path) returns true.
- increase to 6px [Fragment]
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ └── apply-response-command
│ │ ├── apply-response-command.ts
│ │ ├── handlers
│ │ │ ├── diff-handler.ts
│ │ │ ├── fast-replace-handler.ts
│ │ │ ├── restore-preview-handler.ts
│ │ │ ├── search-replace-handler.ts
│ │ │ └── truncated-handler.ts
│ │ ├── index.ts
│ │ ├── response-processor.ts
│ │ ├── types
│ │ │ └── original-file-state.ts
│ │ └── utils
│ │ ├── file-checks.ts
│ │ ├── file-operations.ts
│ │ ├── preview
│ │ │ ├── diff-utils.ts
│ │ │ ├── file-preparer.ts
│ │ │ ├── index.ts
│ │ │ ├── preview.ts
│ │ │ ├── temp-file-manager.ts
│ │ │ ├── types.ts
│ │ │ ├── virtual-document-provider.ts
│ │ │ ├── vscode-ui.ts
│ │ │ └── workspace-listener.ts
│ │ ├── preview-handler.ts
│ │ └── state-manager.ts
│ └── context
│ ├── context-initialization.ts
│ ├── helpers
│ │ ├── get-all-workspace-files.ts
│ │ └── get-selected-files.ts
│ ├── providers
│ │ ├── open-editors
│ │ │ └── open-editors-provider.ts
│ │ ├── selected-files
│ │ │ └── selected-files-provider.ts
│ │ └── workspace
│ │ ├── modules
│ │ │ ├── index.ts
│ │ │ └── token-calculator.ts
│ │ └── workspace-provider.ts
│ ├── shared-context-state.ts
│ └── utils
│ └── shrink-file
│ ├── index.ts
│ ├── languages
│ │ ├── c-style.ts
│ │ ├── css.ts
│ │ ├── html.ts
│ │ ├── jsx.ts
│ │ ├── python.ts
│ │ ├── ruby.ts
│ │ └── sql.ts
│ ├── shrink-file.spec.ts
│ ├── shrink-file.ts
│ └── test-cases
│ ├── c-style
│ │ ├── input.txt
│ │ └── output.txt
│ ├── css
│ │ ├── input.txt
│ │ └── output.txt
│ ├── html
│ │ ├── input.txt
│ │ └── output.txt
│ ├── jsx
│ │ ├── input.txt
│ │ └── output.txt
│ ├── python
│ │ ├── input.txt
│ │ └── output.txt
│ ├── ruby
│ │ ├── input.txt
│ │ └── output.txt
│ ├── scss
│ │ ├── input.txt
│ │ └── output.txt
│ └── sql
│ ├── input.txt
│ └── output.txt
└── packages
└── ui
└── src
└── components
└── editor
└── prompt
└── SelectedFiles
├── SelectedFiles.module.scss
└── SelectedFiles.tsx1 parent 5f957cb commit 2c6b0d6
4 files changed
Lines changed: 57 additions & 18 deletions
File tree
- apps/editor/src/commands/apply-response-command/utils
- preview
- packages/ui/src/components/editor/prompt/SelectedFiles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
155 | | - | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
159 | 173 | | |
160 | 174 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 175 | + | |
164 | 176 | | |
165 | 177 | | |
166 | 178 | | |
167 | 179 | | |
168 | 180 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 181 | | |
173 | 182 | | |
174 | 183 | | |
| |||
279 | 288 | | |
280 | 289 | | |
281 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
282 | 303 | | |
283 | | - | |
| 304 | + | |
284 | 305 | | |
285 | 306 | | |
286 | 307 | | |
287 | 308 | | |
288 | 309 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | 310 | | |
293 | 311 | | |
294 | 312 | | |
| |||
377 | 395 | | |
378 | 396 | | |
379 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
380 | 410 | | |
381 | 411 | | |
382 | | - | |
| 412 | + | |
383 | 413 | | |
384 | 414 | | |
385 | 415 | | |
| |||
393 | 423 | | |
394 | 424 | | |
395 | 425 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | 426 | | |
401 | 427 | | |
402 | 428 | | |
| |||
593 | 619 | | |
594 | 620 | | |
595 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
596 | 631 | | |
597 | 632 | | |
598 | 633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
0 commit comments