Skip to content

Autocomplete not inserting parentheses or arguments for some items #2992

@Merrit

Description

@Merrit

Describe the bug
Autocomplete seems to be working for some items, not for others.

So far I have tested these:

Working Not working
Custom functions print
.forEach widgets

So this is working as expected for something like a function I wrote myself, or myList.forEach(). Not sure why others aren't working.

To Reproduce
Steps to reproduce the behavior:

  1. In a function, eg main(), type prin
  2. Press Tab to accept 'Print' autocomplete

Expected behavior
The item, eg print() or Text() should be completed with parentheses and arguments if appropriate.

Screenshots
UdRW4b6cJu

9SWkoLOBev

Versions (please complete the following information):

  • VS Code version: 1.51.1
  • Dart extension version: 3.17.0
  • Dart/Flutter SDK version:
    Dart: 2.12.0-76.0.dev
    Flutter: 1.25.0-4.0.pre

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 bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions