Skip to content

inlay hints cannot be shown just after openning project, edit is necessary to trigger the generation #5349

Closed
@0x8f701

Description

@0x8f701

Inlay hints isn't shown directly, I always need to do some modifications to make it works, the first fetchHints is always empty array as you can see from the following screenshot:

https://user-images.githubusercontent.com/33961674/87353897-f5853680-c55d-11ea-9fa4-cc8edc5eb664.png

I tested coc-rust-analyzer & vscode, they both have this issue

I believe it's because the analysis hasn't finished? Because after adding a sleep(30) in fetchHints, it can be correctly rendered.

So the first fetchHints has been called too early and RA just returned empty hints:

https://user-images.githubusercontent.com/33961674/87353897-f5853680-c55d-11ea-9fa4-cc8edc5eb664.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions