Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Js.arity<..> should not be visible #62

Closed
@ryyppy

Description

@ryyppy

I just upgraded our vim setup to rescript-vscode 1.0.6, which comes with the updated ReScript Outcomeprinter.

Right now, when writing code like this:

let callbackU = (. a) => Js.log(a)

callbackU //<-- running dump on here

the triggered type hint output with coc-vim looks like this:

image

Running the editor-support binary directly shows me this:

Pos (l:c): 56:9
```rescript
(. 'a) => unit
```

```rescript
@unboxed @unboxed type arity1<'a> = {\"I1": 'a}
```

<root>/src/bar.res

Expected output:

Since type arity1 is an implementation detail, I'd only be interested in the syntax sugared (. 'a) => unit representation. IMO this extra @unboxed @unboxed type arity1<'a> = {\"I1": 'a} codesnippet should not show up, but I guess this has something to do with how alias showing works?

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