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

fix: completions when parenthesis already provided #21299

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

kasiaMarek
Copy link
Contributor

connected to: scalameta/metals#6630

@kasiaMarek kasiaMarek requested a review from tgodzik July 31, 2024 08:58
@@ -289,7 +289,8 @@ class CompletionSnippetSuite extends BaseCompletionSuite:
|}
|""".stripMargin,
"scala.util.Try@@(1)",
"scala.util.Try(1)"
"scala.util.Try(1)",
assertSingleItem = false
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need the change here, what do we get additionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will now both offer Try() as apply (insert text will be Try) and Try as module (insert text also Try).

@tgodzik tgodzik merged commit 70d2ae7 into scala:main Aug 1, 2024
28 checks passed
WojciechMazur added a commit that referenced this pull request Aug 28, 2024
#21470)

Backports #21299 to the 3.5.2 branch.

PR submitted by the release tooling.
[skip ci]
@WojciechMazur WojciechMazur added this to the 3.5.2 milestone Oct 8, 2024
WojciechMazur added a commit that referenced this pull request Dec 3, 2024
…22085)

Backports #21299 to the 3.3.5.

PR submitted by the release tooling.
[skip ci]
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.

3 participants