Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get type popup for object outside of the file which the object is defined? #360

Closed
Mng12345 opened this issue Feb 8, 2022 · 1 comment · Fixed by #363
Closed

Comments

@Mng12345
Copy link

Mng12345 commented Feb 8, 2022

I am using rescript-vscode with version 1.2.1, i found that the type popup for object is functional in the file which the object is defined, but not in other file.

This is ok
image

This file can not get type popup
image

@cristianoc
Copy link
Collaborator

cristianoc commented Feb 8, 2022

Unclear why this happens, to be investigated.

As a temporary workaround, you can assign the value to a variable:
let obj = Demo.object
Then autocomplete on
obj.[""]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants