Skip to content

LSP code completion should have an option to include parens and/or args #2823

@SametSahin10

Description

@SametSahin10

Describe the bug
I'm unable to add parenthesis and give parameters to a function using tab to go to the next parameter.

To Reproduce

  1. Define a function that accepts one or more parameters.
  2. Try to call the function by starting typing it's name and autocompleting it.
  3. See that the only thing that is autocompleted is the name of the function.

Below is a recording of my screen that demonstrates the issue.

Screen Recording 2020-09-27 at 05 35 10

Expected behavior
Below is a recording of my screen while I autocomplete a simple console.log() statement. This is how the autocomplemetion on Dart code should've worked.

Screen Recording 2020-09-27 at 05 33 24

Insert Argument Placeholder option is enabled and enableCompletionCommitCharacters option is disabled.

Versions (please complete the following information):

  • VS Code version: 1.49.2
  • Dart extension version: 3.14.1
  • Dart/Flutter SDK version: Dart - 2.9.2 / Flutter - 1.20.4

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