-
Notifications
You must be signed in to change notification settings - Fork 333
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: New inlay hints options #6236
Conversation
c762f7b
to
082c6bb
Compare
@@ -231,7 +225,7 @@ object UserConfiguration { | |||
|""".stripMargin, | |||
), | |||
UserConfigurationOption( | |||
"show-inferred-type", | |||
"inferred-types", |
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.
Shouldn't this be inlay-hints.inferred-types
?
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.
Right, I've missed that. Even inlay-hints.inferred-types.enable
val qualStart = sel.qualifier.pos.start | ||
val nameStart = sel.namePosition.start | ||
qualStart != nameStart && nameStart < text.length() && | ||
!text.slice(qualEnd, nameStart).contains(".") |
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.
Can you explain what are you fixing here?
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 were some false positives, but I don't remember where exactly
082c6bb
to
70af532
Compare
mtags/src/main/scala-2/scala/meta/internal/pc/PcInlayHintsProvider.scala
Show resolved
Hide resolved
tests/unit/src/main/scala/tests/BaseInlayHintsExpectSuite.scala
Outdated
Show resolved
Hide resolved
Adds new user configuration for inlay hints, with a fallback to old settings. Also adds separate option for inlay hints inside pattern match.
70af532
to
3428def
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!
Changes from: - scalameta/metals#6225 - scalameta/metals#6236 - scalameta/metals#6241 - scalameta/metals#6303 - scalameta/metals#6308 [Cherry-picked 1cdf99f]
Changes from: - scalameta/metals#6225 - scalameta/metals#6236 - scalameta/metals#6241 - scalameta/metals#6303 - scalameta/metals#6308 [Cherry-picked 1cdf99f]
Adds new user configuration for inlay hints, with a fallback to old settings.
Also adds separate option for inlay hints inside pattern match.