question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include "required" parameters in LSP's completeFunctionCalls completions

See original GitHub issue
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 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found