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

Auto-completion starts suggesting keywords while entering block-comment #5731

Closed
oscar-broman opened this issue Oct 10, 2023 · 1 comment · Fixed by #5739
Closed

Auto-completion starts suggesting keywords while entering block-comment #5731

oscar-broman opened this issue Oct 10, 2023 · 1 comment · Fixed by #5739
Assignees
Labels
bug Something that is making a piece of functionality unusable completions Tickets related to completion functionality
Milestone

Comments

@oscar-broman
Copy link

oscar-broman commented Oct 10, 2023

Describe the bug

  1. Go to Metals website
  2. Click "Try Online with Gitpod"
  3. Wait for everything to be set up
  4. Open src/main/scala/Main.scala
  5. Start typing /*, wait ~0.1sec, then press enter

The auto-completion will insert def into the block-comment, which is not what's desired.

Note: If I have a line such as // */ below, and I start typing /* then this does not happen. I'm guessing this is due to fact that no parser errors will occur.

image

Expected behavior

The expected behavior is that a new line is added.

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v1.0.1

Extra context or search terms

completion suggestion auto-complete auto-suggest comment

@tgodzik tgodzik added bug Something that is making a piece of functionality unusable completions Tickets related to completion functionality labels Oct 10, 2023
@tgodzik
Copy link
Contributor

tgodzik commented Oct 10, 2023

Thanks for reporting! It looks like a bug indeed. Most likely the only thing to complete should be */ in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is making a piece of functionality unusable completions Tickets related to completion functionality
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants