Skip to content

Closure completions are not showing up in VS Code #4837

Closed

Description

@DanTup

While looking into #4834, I don't see any closure completions even using code from the test:

image

Activity

  1. added this to the v3.78.0 milestone on Nov 14, 2023
  2. DanTup commented on Nov 14, 2023

    @DanTup
    MemberAuthor

    From the log... labels are missing:

    {
    	"insertTextFormat": 2,
    	"kind": 2,
    	"label": "",
    	"sortText": "9099",
    	"textEditText": "(a, b) {\n      $0\n    },"
    },
    {
    	"insertTextFormat": 2,
    	"kind": 2,
    	"label": "",
    	"sortText": "9099",
    	"textEditText": "(a, b) => $0,"
    },

    Something is likely going wrong with the mapping - this also suggests we have no LSP tests for closures.

  3. DanTup commented on Nov 14, 2023

    @DanTup
    MemberAuthor
  4. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on Nov 14, 2023
  5. changed the title [-]Closure completions are not showing up in VS Code[/-] [+]Closure completions are not showing up in VS Code in bleeding-edge SDKs[/+] on Nov 14, 2023
  6. DanTup commented on Nov 15, 2023

    @DanTup
    MemberAuthor
  7. changed the title [-]Closure completions are not showing up in VS Code in bleeding-edge SDKs[/-] [+]Closure completions are not showing up in VS Code[/+] on Nov 20, 2023
  8. DanTup commented on Nov 20, 2023

    @DanTup
    MemberAuthor

    This came up in #4845 too.

    @bwilkerson @jacob314 FYI - when I fixed this last week I thought the bug had only made bleeding-edge SDKs, but apparently I got the branch date wrong and the bug shipped in stable.

    I don't know if it meets the bar for a cherry-pick, but it might may come up a lot given how common function parameters are in Flutter. The actual fix is pretty trivial (see dart-lang/sdk@28d9ac0).

  9. pinned this issue on Nov 20, 2023
  10. DanTup commented on Nov 25, 2023

    @DanTup
    MemberAuthor

    Since this issue is being raised a lot, here's a summary that I can link to from other issues I'm closing as a dupe.

    Edit: 2023-12-01: This bug was in the Dart 3.2 / Flutter 3.16 SDK releases and a fix has been hot-fixed into Dart 3.2.2 / Flutter 3.16.2.

    If you're still seeing this, please update to the latest Dart/Flutter and restart VS Code.

  11. unpinned this issue on Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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 bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions