tsc -watch
should ignore files without extensions, pretends to hang during compilation instead
#46949
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
mkhl/issue-tsc-watch-should-ignore-files-without-extension (branch
next
for typescript nightly)A playground won't work because it's not the handling of typescript code that's problematic but of other additional files
💻 Code
🙁 Actual behavior
tsc -watch -p ./
touch foo
ormkdir
Note that touching a relevant file (like
index.ts
results in normal output resuming).Note also that with this behavior, the user and tools that scan tsc output, like visual studio code, may assume that they have to wait for tsc to finish compilation.
(That's in fact what vscode does, which led me here.)
🙂 Expected behavior
Since a file without an extension or an empty directory don't require recompilation, tsc should ignore them and not output anything.
It already handles files with irrelevant extensions this way (like
foo.txt
).The text was updated successfully, but these errors were encountered: