rescript-vscode icon indicating copy to clipboard operation
rescript-vscode copied to clipboard

Codelens doesn't stick to the function definition when added a new line before it

Open DZakh opened this issue 3 years ago • 3 comments

https://user-images.githubusercontent.com/49292466/191954777-0e729b68-e4fc-43b1-86e8-5358cb3f2166.mov

Version: v1.7.19 pre-release

DZakh avatar Sep 23 '22 11:09 DZakh

It's fixed after formatting the file on save.

DZakh avatar Sep 23 '22 11:09 DZakh

This is because what's producing the code lens is operating on the saved, compiled content (where everything is guaranteed to have a type). Unclear if it's worth the complexity of trying to work around that.

zth avatar Sep 23 '22 13:09 zth

I'll try the feature for longer time and give more feedback.

DZakh avatar Sep 23 '22 13:09 DZakh