menelik
menelik

Reputation: 21

problem in flutter widgets not generating fully in vscode

whenever to generate and select widgets for example Text widget it comes incomplete like "Text" instead of "Text()". i have tried to uninstall and reinstall Vscode but it is still doing the same. i am using vscode 1.52.1

Upvotes: 1

Views: 511

Answers (1)

Danny Tuppeny
Danny Tuppeny

Reputation: 42453

It sounds like you're probably using the LSP Preview which didn't have this functionality until recently. If you're using a recent dev build, you should be able to get it back by enabling the dart.completeFunctionCalls setting.

#2823: A new setting dart.completeFunctionCalls will cause code completion on functions/methods to include parentheses and argument placeholders for required arguments.

dart.completeFunctionCalls

Upvotes: 1

Related Questions