Code completion for zero-argument functions should position the text cursor after the completion #3873
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
Milestone
To Reproduce
Steps to reproduce the behavior:
var s = 'HELLO WORLD'.toL
. Completion suggests the.toLowerCase()
method.Result:
VS Code completes
.toLowerCase()
but positions the text cursor between the parentheses.Expected behavior
Since the completed method is known to take zero arguments, positioning the text cursor between the parentheses seems pointless. I instead expected the text cursor to be after
.toLowerCase()
. After completion, I quickly typed;
and theEnter
key before realizing what happened, and undoing the damage took additional effort.I'm not sure if this is something that the Dart extension can do something about or if it's how code completion works in VS Code in general.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: