-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsc should ignore hidden files by default (regression in 2.6) #29461
Comments
I think this is more important than it seems. It affects vim and potentially many other editors. Probably there are not many complaints because |
I experience the effects of this regression when editing my projects with Emacs on macOS but not when editing VS Code. With Emacs, when you have unsaved changes in |
This should be fixed by #31954 |
Thanks @sheetalkamat and @suhasdeshpande ! |
@glasser @sheetalkamat @suhasdeshpande I just found 13b7af6 in the commit history for the latest release (3.7.2) but I experienced this problem today in a project that has |
TypeScript/src/compiler/sys.ts Line 333 in 13b7af6
Is |
They are handled at any depth since this is the check on absolute path to see of that pattern exists meaning file name starting with |
@sheetalkamat It is 100% definitely using typescript
I'm not sure about
(Note: the use of I got this when I started typing in Emacs within:
I am confident at this point that #29461 should be re-opened rather than a new issue being created. |
TypeScript Version: 3.2.2
Search Terms: tsc watch hidden dot emacs
Code
Expected behavior:
Touching a file that starts with a dot should not trigger the watcher.
Actual behavior:
Touching a file that starts with a dot did not trigger the watcher in TS 2.0 through 2.5, but does trigger the watcher in 2.6 onward.
Related Issues:
This is the same issue filed by @evmar as #6861 in 2016. That issue was closed because it was fixed by #8484 in 2.0.2. However, it appears that the rewrite of the watcher in 2.6 (by @sheetalkamat I think) reintroduced the issue.
The impact of this issue is that emacs users with the default configuration will see
tsc --watch
refresh every time they start editing a file, because of emacs lock files. (As a workaround, Emacs users can stop using lock files withM-x customize-variable RET create-lockfiles
.)The original issue was considered to be important enough to fix in the first place, and I can't find anything showing that this change was intentional, so it seems like an unintended regression (though admittedly one that is over a year old).
The text was updated successfully, but these errors were encountered: