Skip to content

dart/textDocument/publishOutline (and other notifications) are not sent for newly opened files #5048

Closed

Description

@DanTup

While investigating #5047, I opened my augmentation testing project. It had main_augmentation.dart already open and in the logs I see a dart/textDocument/publishOutline for that file.

If I then click "Go to Augmented" CodeLens, it opens main.dart, but no outline is ever sent.

I suspect there is some race here, but it's the main reason of hitting the 5s timeout in #5047 and fixing this might be a better way to handle it (because changing the timeout of not waiting is a trade-off with negative consequences noted in microsoft/vscode#208900).

Activity

  1. added this to the v3.86.0 milestone on Mar 27, 2024
  2. DanTup commented on Mar 27, 2024

    @DanTup
    MemberAuthor

    Fix at https://dart-review.googlesource.com/c/sdk/+/360041

    The issue was that an optimization to skip re-analyzing files as they're opened was also resulting in not getting these notifications.

  3. added
    relies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
    on Mar 27, 2024
  4. changed the title [-]dart/textDocument/publishOutline is not sent for newly opened file[/-] [+]dart/textDocument/publishOutline (and other notifications) are not sent for newly opened files, resulting in slow CodeLens (and possibly others)[/+] on Mar 27, 2024
  5. changed the title [-]dart/textDocument/publishOutline (and other notifications) are not sent for newly opened files, resulting in slow CodeLens (and possibly others)[/-] [+]dart/textDocument/publishOutline (and other notifications) are not sent for newly opened files[/+] on Mar 27, 2024
  6. added
    in editorRelates to code editing or language features
    on Mar 27, 2024
  7. DanTup commented on Mar 27, 2024

    @DanTup
    MemberAuthor

    Fixed by dart-lang/sdk@41612e4, ships in SDK

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