-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Avoid creating IsFileOfInterest keys for non workspace files #1661
Conversation
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.
In VS Code you can open individual files that aren't in the workspace. If you have goto definition, then often that is super easy. What happens then?
Now the |
43ed95d
to
6be159d
Compare
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.
So it sounds like your argument is if we hit the alwaysRerun path than isFileOfInterest is not interesting. If so, why both with the isWorkspaceFile check? Why not move it down to the branches where alwaysRerun isn't hit, and save ourself the dependency in a more?
I note there are now two local definitions for isWF
being whether the file is a workspace file, or a watched file. Would be good to use distinct names.
Right, that's a good point. I'll move the |
4bf8bec
to
035edc8
Compare
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.
Thanks - this code is now beautifully understandable - I learnt something about the old code from your rewrite :)
There's no need to create
IsFileOfInterest
keys for every interface file