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

Completions for requests just before string #22894

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

NPCRUS
Copy link
Contributor

@NPCRUS NPCRUS commented Apr 1, 2025

fixes #22514

@rochala rochala self-assigned this Apr 1, 2025
@rochala rochala self-requested a review April 1, 2025 11:47
- extractor for StringContext apply
- cleanup
@NPCRUS NPCRUS requested a review from tgodzik April 2, 2025 11:23
@NPCRUS
Copy link
Contributor Author

NPCRUS commented Apr 2, 2025

advices on names are most welcome!

@NPCRUS NPCRUS marked this pull request as ready for review April 2, 2025 11:49
| val VersionRegex = "".r
| VersionRe@@"1234"
""".stripMargin,
"|VersionRegex: Regex".stripMargin
Copy link
Contributor

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 ?

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

@tgodzik tgodzik left a 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 !

@tgodzik tgodzik merged commit 823782c into scala:main Apr 3, 2025
29 checks passed
@NPCRUS NPCRUS deleted the string-context-completions branch April 3, 2025 17:31
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.

No completions for requests just before String
3 participants