Auto complete on variable destruction can be improved #59854
Labels
analyzer-completion
Issues with the analysis server's code completion feature
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
Originally opened at Dart-Code/Dart-Code#5379.
Is your feature request related to a problem? Please describe.
When you have code like this:
When inside
List(^)
you get prompted by auto-complete for all proprieties the class has. But when you auto-complete, it simply fills the propriety name and not:var isEmpty
which is a valid syntax for getting that value (infor in
loops you also can do this but thevar
is then before the Type name). We already have the rename refactor for changing the variable name to a new one if we want to, but I feel like this would help more than harm most of the time.Describe the solution you'd like
For it to auto-complete with
:var
before the propriety name (if you know what lints are available maybe we can look at the ones that ask for thefinal
keyword or the type name) onif case
s and without thevar
keyword onfor in
loops.The text was updated successfully, but these errors were encountered: