-
Notifications
You must be signed in to change notification settings - Fork 12.9k
cache results of fileExists check in default compiler host #5367
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
Conversation
Isn't this a problem for |
it might. Also we currently already cache results of |
|
directory can be deleted between recompilations and we still will think it exists |
You could also make a helper function for |
@@ -286,6 +295,13 @@ namespace ts { | |||
reportWatchDiagnostic(createCompilerDiagnostic(Diagnostics.Compilation_complete_Watching_for_file_changes)); | |||
} | |||
|
|||
function fileExists(fileName: string): boolean { |
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.
can we rename this to cachedFileExist
just to make it clear.
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.
sure
👍 |
cache results of fileExists check in default compiler host
No description provided.