To Reproduce
Steps to reproduce the behavior:
- In VS Code, type:
var s = 'HELLO WORLD'.toL. Completion suggests the .toLowerCase() method.
- Press Tab.
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 the Enter 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):
- VS Code version: 1.65.1 on Linux x64
- Dart extension version: 3.36.0
- Dart/Flutter SDK version: 2.17.0
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 theEnterkey 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):