Skip to content

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

Closed
@DanTup

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).

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