-
Notifications
You must be signed in to change notification settings - Fork 205
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
fix: prevent ignorance of initial changes #1720
Conversation
@@ -84,7 +84,10 @@ private final class BloopNameHashing( | |||
initialChangedSources, | |||
allSources.map(v => v: VirtualFileRef), | |||
previous | |||
).collect { case f: VirtualFile => f } |
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.
initialChagedSources
are received as VirtualFileRef
and mapInvalidationToSources
doesn't lift them into VirtualFile
.
Using collect
here is incorrect as it just drops correctly invalidated sources.
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.
och! That looks like the issue i've been having! Awesom!
).map { | ||
case f: VirtualFile => f | ||
case ref: VirtualFileRef => PlainVirtualFileConverter.converter.toVirtualFile(ref) | ||
} |
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.
@tgodzik Is PlainVirtualFileConverter.converter
usage fine here?
I've seen that in some methods converter
is passed as parameter.
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 so, we don't use any other converters currently, so this should be fine.
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.
what is the actual type returned? VirtualFileRef is only an interface, no?
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.
LGTM!
).map { | ||
case f: VirtualFile => f | ||
case ref: VirtualFileRef => PlainVirtualFileConverter.converter.toVirtualFile(ref) | ||
} |
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 so, we don't use any other converters currently, so this should be fine.
@@ -84,7 +84,10 @@ private final class BloopNameHashing( | |||
initialChangedSources, | |||
allSources.map(v => v: VirtualFileRef), | |||
previous | |||
).collect { case f: VirtualFile => f } |
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.
och! That looks like the issue i've been having! Awesom!
No description provided.