-
Notifications
You must be signed in to change notification settings - Fork 337
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
improvement: don't run compileAndLookForNewReferences
#6429
Conversation
886e95d
to
52debb7
Compare
@@ -82,7 +87,8 @@ final class ReferenceProvider( | |||
0.01, | |||
) | |||
|
|||
val entry = IdentifierIndex.IndexEntry(id, bloom) | |||
val entry = | |||
IdentifierIndex.IndexEntryWithStaleInfo(id, bloom, isStale = false) |
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.
Why not just IndexEntry? IndexEntryWithStaleInfo
sounds like it actually always is stale.
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 just don't need that field in identifierIndex
. The naming is quite unfortunate, so I'm open to suggestions. Should I just have this useless field be in identifierIndex
too?
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.
MaybeStaleIndexEntry
? Not perfect either
mtags/src/main/scala-2/scala/meta/internal/mtags/MtagsEnrichments.scala
Outdated
Show resolved
Hide resolved
|
||
try toSymbols(pkg, names) | ||
val (toNames, rest) = |
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.
The logic here seems duplicated with WorkspaceSymbolSearch
f0d5843
to
9ed940e
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.
LGTM! Let's just make sure the LSP tests are passing, I rerun them for you.
…okForNewReferences` use pc for stale semanticdbs
Previously we would run recompile for inverse build targets after
go to references
to find if there are no new references. This would cause a lot of recompilations in presence of compilation errors. Since now we usepc
as fallback for finding references we can use it always for files that have stale semanticdb.resolves: #6348
Since now a lot more tests use
pc
for references this showed a few issues with that. The fixes probably have to also be migrated to Scala 3 pc.