Skip to content
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: Add fallback for inlay hints #6142

Merged
merged 2 commits into from Feb 28, 2024

Conversation

jkciesluk
Copy link
Member

For Scala 3.nightly, it maps old synthetic decorations to inlay hints. Its needed because inlay hints are not available for every Scala version

For Scala 3.nightly, it maps old synthetic decorations to inlay hints.
Its needed because inlay hints are not available for every Scala version
ScalaVersions.isSupportedAtReleaseMomentScalaVersion(version)
default.resolve(scalaVersion).orElse {
if (ScalaVersions.isSupportedAtReleaseMomentScalaVersion(scalaVersion))
Some(MtagsBinaries.BuildIn)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this not resolve always latest Scala 2.13 mtags?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only if resolve failed and we want to use supported Scala version. I think its used only in unit tests, where we don't publish mtags

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ach, right!

@jkciesluk jkciesluk merged commit 7745db3 into scalameta:main Feb 28, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants