lsp-dart
lsp-dart copied to clipboard
Context/snippet menu opening to fast
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

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"
As a workaround one can set lsp-enable-snippet to nil, to disable this context menu, but this will disable it at all.
This happens because lsp-mode or server doesn't filter the input text, could you open a issue on lsp-mode?