-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Completions for requests just before string #22894
Conversation
presentation-compiler/test/dotty/tools/pc/tests/completion/BlaSuite.scala
Outdated
Show resolved
Hide resolved
- extractor for StringContext apply - cleanup
advices on names are most welcome! |
| val VersionRegex = "".r | ||
| VersionRe@@"1234" | ||
""".stripMargin, | ||
"|VersionRegex: Regex".stripMargin |
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.
Should we show VersionRegex if it doesn't have anything to do with StringContext? Could we have a check that only shows things like raw
?
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.
We want to show all completions. This is unintended behavior that there were no completions just before string due to String context desugaring. All other completions work like that
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.
for example you have a string which you want to wrap in Some, and you had no completions at all
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 then! Thanks @NPCRUS !
fixes #22514