Repository navigation
Commit aadc5ae
committed
Skip processing for excluded files in workspace file system event handlers
- In `workspace-provider.ts`, update `_on_file_system_changed` and `_handle_file_create` to return early if the path is excluded by `this.is_excluded` (checking both `relative_path` and `relative_path + '/'` to handle deleted or directory paths) before reloading gitignores, invalidating token caches, updating parent states, or scheduling refreshes.
└── apps
└── editor
└── src
└── 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.txt1 parent a05c6f7 commit aadc5ae
1 file changed
Lines changed: 39 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
425 | 433 | | |
426 | 434 | | |
427 | 435 | | |
| |||
461 | 469 | | |
462 | 470 | | |
463 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
464 | 480 | | |
465 | 481 | | |
466 | | - | |
467 | 482 | | |
468 | 483 | | |
469 | 484 | | |
| |||
474 | 489 | | |
475 | 490 | | |
476 | 491 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
483 | 503 | | |
484 | | - | |
| 504 | + | |
| 505 | + | |
485 | 506 | | |
| 507 | + | |
486 | 508 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
505 | 516 | | |
506 | 517 | | |
| 518 | + | |
| 519 | + | |
507 | 520 | | |
508 | 521 | | |
509 | 522 | | |
| |||
0 commit comments