-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Remove declares in sys, core, evaluatorImpl #53176
Conversation
@@ -1507,7 +1501,7 @@ export let sys: System = (() => { | |||
getAccessibleSortedChildDirectories: path => getAccessibleFileSystemEntries(path).directories, | |||
realpath, | |||
tscWatchFile: process.env.TSC_WATCHFILE, | |||
useNonPollingWatchers: process.env.TSC_NONPOLLING_WATCHER, | |||
useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is really suspicious; should we be parsing this rather than checking for truthiness? I made it !!
to match current behavior, but, it seems unexpected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sheetalkamat Do you have any advice for this particular place? Is this "fine" or was it intended that we let you set TSC_NONPOLLING_WATCHER=false
or TSC_NONPOLLING_WATCHER=0
or TSC_NONPOLLING_WATCHER=off
or similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its fine to fix it this way. This is from way back... given we have watchOptions now i dont think it matters. We probably should deprecate these environment variable options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These all don't need to be there.
compiler
references the node types, so we can dosys.ts
andcore.ts
safely, which exposes some unsafety / redundant casts.