Skip to content

Snippets suggestion after pressing Return/Enter #419

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

Closed
gotschmarcel-ni opened this issue Feb 24, 2021 · 0 comments
Closed

Snippets suggestion after pressing Return/Enter #419

gotschmarcel-ni opened this issue Feb 24, 2021 · 0 comments

Comments

@gotschmarcel-ni
Copy link

We have some Lua snippets registered in VSCode and since version 1.16.0 the suggestions popup keeps opening after hitting the enter/return key. Downgrading to 1.14.3 seems to fix this issue.

Steps to reproduce the behavior:

  1. Register snippets for Lua in VSCode
  2. Open a folder containing a blank Lua file
  3. Put the cursor on a blank line and hit enter/return
  4. Snippet popup shows up

We expect that the snippet popup only shows up when using ctrl+space or when the prefix matches.

See this demo:
I've added a user snippet and then keep hitting the enter key.
Sumneko_Lua_Extension_VSCode_Bug_Snippets

  • OS: macOS
  • Client: VSCode
@gotschmarcel-ni gotschmarcel-ni changed the title Snippets suggestion on blank line after pressing Return Snippets suggestion after pressing Return/Enter Feb 24, 2021
sumneko added a commit that referenced this issue Feb 24, 2021
@sumneko sumneko closed this as completed in 41b72b3 Mar 5, 2021
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

No branches or pull requests

1 participant