Karsten Møller
Karsten Møller

Reputation: 55

VSCode not showing function parameter list in Dart code

When I edit JavaScript code, VSCode immediately show me a popup with a list of parameters as soon as I have typed a function name followed by (.

When editing Dart code this is not the case. Here I have to use the mouse to hover over the function name to show a popup with information about the function.

Is this normal behaviour? Are there any way to change this behaviour? Does anyone know a shortcut to show the popup?

Upvotes: 1

Views: 2804

Answers (1)

Danny Tuppeny
Danny Tuppeny

Reputation: 42343

This is controlled by a VS Code user setting in the Dart extension (dart.triggerSignatureHelpAutomatically). It's not on by default because there are some quirks (that I don't remember exactly off the top of my head).

There's work in progress to move the extension to using the LSP protocol which will push some of this functionality into the Dart analysis server, which may make it easier to make some functionality like this more reliable (since more info is available in the language server than is currently exposed to the VS Code extension).

Upvotes: 2

Related Questions