Skip to content

Broken autocomplete of local variables if @react.component decorator is present #323

Closed
@Lomand

Description

@Lomand

Concider the following example:

image

If I'll try to autocomplete myAmazingFunction, everything will work just as expected (well, besides the fact that it would be prefferable to have local file variables on the top of the list, not the bottom, but I digress):

image

However, autocomplete can be broken just by adding two new lines before the @react.component decorator

image

Or by creating another variable before the @react.component decorator:

image

If the @react.component decorator is removed, autocomplete works with any amount of empty lines or variables:

image

Repo with the example:

https://github.com/Lomand/rescript-broken-autocomplete-jsx/tree/master/src/decorator-breaks-autocomplete

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