Repository navigation
Revert changes to matchFiles/readDirectory made since 4.3 - #46787
Conversation
Andrew Casey (amcasey)
left a comment
There was a problem hiding this comment.
Will this re-break the RWC tests?
| options = { persistent: true }; | ||
| } | ||
| } | ||
|
|
There was a problem hiding this comment.
I understand a full revert is safer at this point in the cycle, but it would be nice to keep (or quickly restore) this part of the change.
There was a problem hiding this comment.
Can you review the latest commit and see if this is what you had in mind?
| assert.notEqual(endOfFileToken.getChildAt(0), /*expected*/ undefined); | ||
| }); | ||
|
|
||
| describe("unittests:: Public APIs:: sys", () => { |
There was a problem hiding this comment.
We’ll bring it back when we decide what the correct thing to assert is
|
LGTM |
|
TypeScript Bot (@typescript-bot) cherry-pick this to release-4.5 |
|
Heya Andrew Branch (@andrewbranch), I've started to run the task to cherry-pick this into |
|
Hey Andrew Branch (@andrewbranch), I've opened #46789 for you. |
Component commits: 931b504 Revert "Fix RWC missing file detection (microsoft#46673)" This reverts commit 4a065f5. afef282 Revert "Pass absolute path to directoryExists (microsoft#46086)" This reverts commit 55b4928. f1a20b3 Revert "Reduce exceptions (microsoft#44710)" This reverts commit c0d5c29. 56842cd Add back system watcher limit
Component commits: 931b504 Revert "Fix RWC missing file detection (#46673)" This reverts commit 4a065f5. afef282 Revert "Pass absolute path to directoryExists (#46086)" This reverts commit 55b4928. f1a20b3 Revert "Reduce exceptions (#44710)" This reverts commit c0d5c29. 56842cd Add back system watcher limit Co-authored-by: Andrew Branch <andrew@wheream.io>
…46787) * Revert "Fix RWC missing file detection (microsoft#46673)" This reverts commit 4a065f5. * Revert "Pass absolute path to directoryExists (microsoft#46086)" This reverts commit 55b4928. * Revert "Reduce exceptions (microsoft#44710)" This reverts commit c0d5c29. * Add back system watcher limit
Reverts #44710, #46086, and #46673.
Fixes #46577.
I have discovered that
ts.matchFiles/ts.sys.readDirectorydoes a lot of extremely confusing things, none of which are documented and some of which are probably bugs, but nobody seemed to notice until we started messing with it, so I’m reverting back to our 4.3 state. I will post my findings of what’s weird even in 4.3 so we can decide if any of it is worth fixing (done: #46788).