Commit f5ad787
authored
Always recreate the file watcher when rename event occurs (#48997)
* Convert some of the watchEnvironment tests to baselines for updating later
* Add tests for inode watching by making fsWatch part of system function that tests presence before creating fs watch
* Refactor for simpler tests
* Accept map of file content or file or symlink or folder
* Add test when rename event occurs when file has already reappeared
* On rename event for the file, replace file watcher irrespective of file presence
* Fix regex
* Ensure that when doing inode watching watchers is replaces only on disappearance or appearance
* Some logging for debugging further
* Revert "Some logging for debugging further"
This reverts commit dd2164a.
* Add test when rename event occurs on mac with ~ appended to file name
* If the relativeFileName ends with tilde, remove it from the event
* Some logging for debugging further
* Revert "Some logging for debugging further"
This reverts commit e1ba8a8.
* Add documentation and fail safe the event firing1 parent ce63935 commit f5ad787
File tree
541 files changed
+43236
-7794
lines changed- src
- compiler
- harness
- testRunner/unittests
- tsbuildWatch
- tscWatch
- tsserver
- events
- tests/baselines/reference
- tsbuildWatch
- demo
- moduleResolution
- noEmitOnError
- noEmit
- programUpdates
- reportErrors
- declarationEmitErrors
- introduceError
- with-circular-project-reference
- with-simple-project-reference-graph
- projectsBuilding
- publicApi
- reexport
- watchEnvironment
- tscWatch
- consoleClearing/when-preserveWatchOutput-is-true-in-config-file
- emitAndErrorUpdates
- assumeChangesOnlyAffectDirectDependenciesAndD
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- assumeChangesOnlyAffectDirectDependencies
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- defaultAndD
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- default
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- isolatedModulesAndD
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- isolatedModules
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- emit
- emit-file-content
- emit-for-configured-projects
- emit-with-outFile-or-out-setting
- when-module-emit-is-specified-as-node
- forceConsistentCasingInFileNames
- incremental
- module-compilation
- own-file-emit-without-errors
- moduleResolution
- nodenext watch emit
- programUpdates
- should-not-trigger-recompilation-because-of-program-emit
- updates-errors-in-lib-file
- when-module-file-with-global-definitions-changes
- when-non-module-file-changes
- projectsWithReferences
- resolutionCache
- ignores-changes-in-node_modules-that-start-with-dot
- sourceOfProjectReferenceRedirect
- watchApi
- watchEnvironment
- fsWatch
- watchDirectories
- watchFile
- watchOptions
- tsserver
- cachingFileSystemInformation
- configFileSearch
- configuredProjects
- inferredProjects
- moduleSpecifierCache
- partialSemanticServer
- projectErrors
- projectReferencesSourcemap
- dependencyAndUsage
- configHasNoReference
- configWithReference
- disabledSourceRef
- dependency
- configHasNoReference
- configWithReference
- disabledSourceRef
- usageProject
- configHasNoReference
- configWithReference
- disabledSourceRef
- projectUpdatedInBackground
- projectsWithReferences
- projects
- resolutionCache
- symLinks
- syntacticServer
- typingsInstaller
- watchEnvironment
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
541 files changed
+43236
-7794
lines changedLarge diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
24 | 15 | | |
25 | 16 | | |
26 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
436 | 432 | | |
437 | 433 | | |
438 | 434 | | |
439 | | - | |
| 435 | + | |
440 | 436 | | |
441 | 437 | | |
442 | 438 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
584 | 720 | | |
585 | 721 | | |
0 commit comments