Skip to content

Early textDocument/didOpen misses parent module origin collection #1032

Open
@radeksimko

Description

@radeksimko

In case where the user opens the editor with restored session, where files were previously opened, or simply opens a file early, before we manage to finish indexing the workspace via walker, we may end up without reference origins on the module block. Therefore Go-To-Definition doesn't work on first load and requires re-opening the file or typing something into it.

2022-08-09 13 54 50

Collecting origins on module blocks requires the module itself being parsed & metadata decoded beforehand.

The theory is that the reference origin collection for the config with the module block runs earlier than expected, due to it being prioritised over the parsing and metadata decoding of the called module code itself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions