lsp-dart icon indicating copy to clipboard operation
lsp-dart copied to clipboard

Context/snippet menu opening to fast

Open victorpigmeo opened this issue 3 years ago • 2 comments

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 avatar Mar 15 '22 14:03 victorpigmeo

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

victorpigmeo avatar Mar 15 '22 14:03 victorpigmeo

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

ericdallo avatar Mar 15 '22 23:03 ericdallo