-
Notifications
You must be signed in to change notification settings - Fork 185
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
Remove support for ExplicitResultTypes.skipLocalImplicits option #1209
Conversation
ExplicitResultTypesConfig uses the Scalameta parser to only compute SemanticDB global symbols and then load those symbols with the presentation compiler. It's not possible to use the same approach for local symbols, so we should drop support for it.
Unfortunately @giabao we'll have to revert your PR as this implementation of |
g.inverseSemanticdbSymbols(sym.value) | ||
.find(s => g.semanticdbSymbol(s) == sym.value) | ||
.getOrElse(g.NoSymbol) | ||
GlobalProxy.typedTreeAt(g, gpos) |
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.
@olafurpg is this called just for its side effect ad8a4bb? That goes far beyond my understanding, but when it was added in 162db39#diff-0771fc97e5f15a43af8af2a9e65cbc62R137, there was no explicit side effect so I wonder.
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.
Correct. This method performs “positioned type checking”, which loads up all the necessary symbols from the classpath. The return value is helpful in other situations like in metals where we use this method to implement parameter hints or completions
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
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.
Thank you!
Fix #1198
Reverts #1181
Rationale: #1198 (comment)