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

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

What would it be like if you save your file?
It is recommended to auto-save for your editor config

@Hongbo What i want is that getting type popup after you type the object(the file is unsaved). This is ok in the first file demo.res
image
If the file demo2.res is saved, it just only get error tips.

I think personally that it would impairs the coding experience of most of us.