-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
@@ -908,7 +908,6 @@ define(function (require, exports, module) { | |||
} | |||
} else { | |||
return !isDirectoryExcluded(entry.fullPath) && | |||
entry.name.indexOf(".") !== 0 && |
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 part of the patch seems to make one of the tests weaker. Was that intentional?
… within isFileExcluded for wider coverage
I've pushed another commit to this branch that implements a fix discussed with @gruehle:
Over to @gruehle for review. |
@@ -206,8 +206,13 @@ define(function (require, exports, module) { | |||
if (!excludes) { |
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.
If excludes
is null in the prefs, we won't exclude any file. I think this if statement needs to be moved into the code below so we will always do the dotfile and language checks.
Fixed. |
I verified that this fixes the hang/crash on Windows and all unit tests pass. I also did some light scenario testing with code hints and everything worked as expected. Merging |
Filter out dotfiles in code hints
Awesome. Thanks for the quick fixing and review @iwehrman, @gruehle and @peterflynn |
Filter out dotfiles in code hints
Quick fix for #6067, but this may not be the total fix if we want to filter out more than dotfiles