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

Context/snippet menu opening to fast #151

Open
victorpigmeo opened this issue Mar 15, 2022 · 2 comments
Open

Context/snippet menu opening to fast #151

victorpigmeo opened this issue Mar 15, 2022 · 2 comments

Comments

@victorpigmeo
Copy link

Describe the bug
When I type a { anywhere in my code, specially when is a function start the snippets menu open to fast, so when I tap Enter to break the line, it applies the snippet selected on the context menu oppened.

To Reproduce
With dart-mode on, open a file, start typing something like: void test(){} and try to break the line after type the first {

Expected behavior
It is expected in this case that the line breaks without adding nothing to the buffer.

Screenshots
Screenshot from 2022-03-15 11-26-25
Screenshot from 2022-03-15 11-26-34
Screenshot from 2022-03-15 11-26-44

Version
[LSP Dart] 1.21.0 at 2022.03.15 @ Emacs 27.2
[Dart SDK] Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "linux_x64"

@victorpigmeo
Copy link
Author

As a workaround one can set lsp-enable-snippet to nil, to disable this context menu, but this will disable it at all.

@ericdallo
Copy link
Member

This happens because lsp-mode or server doesn't filter the input text, could you open a issue on lsp-mode?

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

2 participants