Include "required" parameters in LSP's completeFunctionCalls completions
See original GitHub issueclass Blah {
final stob;
Blah({@required this.stob});
}
When I type ‘Bl
’ intellisense suggests 'Blah(...)'
. When selecting this item it writes Blah()
in my code file. Would it be a nice feature to supply my property names where the constructor uses named parameters? So I think it would be nice if it wrote the following in my code file.
Blah(
stob:
)
For me it would be especially useful where the parameter is decorated with the @required
metadata because then the named parameter must be defined. It would just save some keystrokes I guess but it would be nice.
Many thanks 😃
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
LSP function parameters completion : r/emacs
I'm asking because it appears that I've got all the required pieces, but still couldn't manage to get experience shown above :/.
Read more >v3.18 - Dart Code - Dart & Flutter support for Visual Studio Code
#2992: Completions for some auto-import functions no longer fail to include parens/arguments when dart.completeFunctionCalls is enabled.
Read more >JavaScript/TypeScript (theia-ide) - LSP support for Emacs
Enable/disable automatic closing of JSX tags. Requires using TypeScript 3.0 or newer in the workspace. lsp-javascript-completions-complete-function-calls #.
Read more >typescript-language-server
Language Server Protocol (LSP) implementation for TypeScript using ... If enabled, the completion list will include completions with invalid ...
Read more >IntelliSense in Visual Studio
IntelliSense is a code-completion aid that includes a number of features: List ... names, and types of parameters required by a method, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DanTup I’ve opened an issue there: https://github.com/dart-lang/sdk/issues/38876
Fixed by https://github.com/dart-lang/sdk/commit/0fa6674ea94c26e5f4732a44e10e1374c2f795dd.