Skip to content

Include "required" parameters in LSP's completeFunctionCalls completions #1960

@atreeon

Description

@atreeon
class 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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions