Skip to content

Commit ee7a83a

Browse files
committed
update tests
1 parent 8e161ab commit ee7a83a

11 files changed

+51
-51
lines changed

Diff for: analysis/tests/src/expected/Auto.res.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Hover src/Auto.res 2:13
2-
{"contents": "```rescript\n(Belt.List.t<'a>, 'a => 'b) => Belt.List.t<'b>\n```\n\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.mli%22%2C34%2C0%5D)\n\n---\n\n\n\n Returns a new list with `f` applied to each element of `someList`.\n\n ```res example\n list{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n ```\n"}
2+
{"contents": {"kind": "markdown", "value": "```rescript\n(Belt.List.t<'a>, 'a => 'b) => Belt.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.mli%22%2C34%2C0%5D)\n\n\n\n Returns a new list with `f` applied to each element of `someList`.\n\n ```res example\n list{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n ```\n"}}
33

Diff for: analysis/tests/src/expected/Completion.res.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ JSX <div:[346:9->346:12] name[346:13->346:17]=...[346:18->346:20]> _children:346
14061406
Completable: Cjsx([div], name, [name])
14071407
Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder
14081408
Resolved opens 2 Completion.res Completion.res
1409-
{"contents": "```rescript\nstring\n```"}
1409+
{"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}}
14101410

14111411
Hover src/Completion.res 349:17
14121412
Nothing at that position. Now trying to use completion.
@@ -1417,7 +1417,7 @@ Pexp_ident FAO.forAutoObject:[349:11->349:28]
14171417
Completable: Cpath Value[FAO, forAutoObject]
14181418
Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder
14191419
Resolved opens 2 Completion.res Completion.res
1420-
{"contents": "```rescript\n{\"age\": int, \"forAutoLabel\": FAR.forAutoRecord}\n```"}
1420+
{"contents": {"kind": "markdown", "value": "```rescript\n{\"age\": int, \"forAutoLabel\": FAR.forAutoRecord}\n```"}}
14211421

14221422
Hover src/Completion.res 352:17
14231423
Nothing at that position. Now trying to use completion.
@@ -1435,7 +1435,7 @@ Found type for function (
14351435
unit,
14361436
~c: int,
14371437
) => int
1438-
{"contents": "```rescript\noption<int>\n```"}
1438+
{"contents": {"kind": "markdown", "value": "```rescript\noption<int>\n```"}}
14391439

14401440
Complete src/Completion.res 355:23
14411441
posCursor:[355:23] posNoWhite:[355:22] Found expr:[0:-1->355:23]

Diff for: analysis/tests/src/expected/Definition.res.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Definition src/Definition.res 10:23
55
{"uri": "Definition.res", "range": {"start": {"line": 6, "character": 7}, "end": {"line": 6, "character": 13}}}
66

77
Hover src/Definition.res 14:14
8-
{"contents": "```rescript\n('a => 'b, list<'a>) => list<'b>\n```\n\n [List.map f [a1; ...; an]] applies function [f] to [a1, ..., an],\n and builds the list [[f a1; ...; f an]]\n with the results returned by [f]. Not tail-recursive. "}
8+
{"contents": {"kind": "markdown", "value": "```rescript\n('a => 'b, list<'a>) => list<'b>\n```\n\n [List.map f [a1; ...; an]] applies function [f] to [a1, ..., an],\n and builds the list [[f a1; ...; f an]]\n with the results returned by [f]. Not tail-recursive. "}}
99

1010
Hover src/Definition.res 18:14
11-
{"contents": "```rescript\n(Belt.List.t<'a>, 'a => 'b) => Belt.List.t<'b>\n```\n\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.mli%22%2C34%2C0%5D)\n\n---\n\n\n\n Returns a new list with `f` applied to each element of `someList`.\n\n ```res example\n list{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n ```\n"}
11+
{"contents": {"kind": "markdown", "value": "```rescript\n(Belt.List.t<'a>, 'a => 'b) => Belt.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.mli%22%2C34%2C0%5D)\n\n\n\n Returns a new list with `f` applied to each element of `someList`.\n\n ```res example\n list{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n ```\n"}}
1212

1313
Hover src/Definition.res 23:3
14-
{"contents": "```rescript\n(. int, int) => int\n```"}
14+
{"contents": {"kind": "markdown", "value": "```rescript\n(. int, int) => int\n```"}}
1515

1616
Definition src/Definition.res 26:3
1717
{"uri": "Definition.res", "range": {"start": {"line": 21, "character": 4}, "end": {"line": 21, "character": 13}}}

Diff for: analysis/tests/src/expected/Div.res.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Hover src/Div.res 0:10
22
getLocItem #3: heuristic for <div>
3-
{"contents": "```rescript\n(\n string,\n ~props: ReactDOM_V3.domProps=?,\n array<React.element>,\n) => React.element\n```\n\n\n```\n \n```\n```rescript\ntype ReactDOM_V3.domProps = Props.domProps\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22ReactDOM_V3.res%22%2C57%2C2%5D)\n\n---\n\n\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n\n---\n"}
3+
{"contents": {"kind": "markdown", "value": "```rescript\n(\n string,\n ~props: ReactDOM_V3.domProps=?,\n array<React.element>,\n) => React.element\n```\n\n---\n\n```\n \n```\n```rescript\ntype ReactDOM_V3.domProps = Props.domProps\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22ReactDOM_V3.res%22%2C57%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n"}}
44

55
Complete src/Div.res 3:17
66
posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:4->3:17]

Diff for: analysis/tests/src/expected/DocComments.res.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Hover src/DocComments.res 9:9
2-
{"contents": "```rescript\nint\n```\n\n Doc comment with a triple-backquote example\\n \\n ```res example\\n let a = 10\\n /*\\n * stuff\\n */\\n ```\\n"}
2+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n\n Doc comment with a triple-backquote example\\n \\n ```res example\\n let a = 10\\n /*\\n * stuff\\n */\\n ```\\n"}}
33

44
Hover src/DocComments.res 22:6
5-
{"contents": "```rescript\nint\n```\n\n\n Doc comment with a triple-backquote example\n \n ```res example\n let a = 10\n /*\n * stuff\n */\n ```\n"}
5+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n\n\n Doc comment with a triple-backquote example\n \n ```res example\n let a = 10\n /*\n * stuff\n */\n ```\n"}}
66

77
Hover src/DocComments.res 33:9
8-
{"contents": "```rescript\nint\n```\n\n Doc comment with a triple-backquote example\\n \\n ```res example\\n let a = 10\\n let b = 20\\n ```\\n"}
8+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n\n Doc comment with a triple-backquote example\\n \\n ```res example\\n let a = 10\\n let b = 20\\n ```\\n"}}
99

1010
Hover src/DocComments.res 44:6
11-
{"contents": "```rescript\nint\n```\n\n\n Doc comment with a triple-backquote example\n \n ```res example\n let a = 10\n let b = 20\n ```\n"}
11+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n\n\n Doc comment with a triple-backquote example\n \n ```res example\n let a = 10\n let b = 20\n ```\n"}}
1212

Diff for: analysis/tests/src/expected/Fragment.res.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Hover src/Fragment.res 6:19
22
getLocItem #4: heuristic for </Comp> within fragments: take make as makeProps does not work
33
the type is not great but jump to definition works
4-
{"contents": "```rescript\nReact.component<{\"children\": React.element}>\n```\n\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C12%2C0%5D)\n\n---\n"}
4+
{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<{\"children\": React.element}>\n```\n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C12%2C0%5D)\n"}}
55

66
Hover src/Fragment.res 9:56
77
Nothing at that position. Now trying to use completion.

Diff for: analysis/tests/src/expected/Hover.res.txt

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
Hover src/Hover.res 0:4
2-
{"contents": "```rescript\nint\n```"}
2+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}}
33

44
Hover src/Hover.res 3:5
5-
{"contents": "```rescript\ntype t = (int, float)\n```"}
5+
{"contents": {"kind": "markdown", "value": "```rescript\ntype t = (int, float)\n```"}}
66

77
Hover src/Hover.res 6:7
8-
{"contents": "```rescript\nmodule Id = {\n type x = int\n}\n```"}
8+
{"contents": {"kind": "markdown", "value": "```rescript\nmodule Id = {\n type x = int\n}\n```"}}
99

1010
Hover src/Hover.res 19:11
11-
{"contents": "\nThis module is commented\n```rescript\nmodule Dep = {\n let customDouble: int => int\n}\n```"}
11+
{"contents": {"kind": "markdown", "value": "\nThis module is commented\n```rescript\nmodule Dep = {\n let customDouble: int => int\n}\n```"}}
1212

1313
Hover src/Hover.res 22:11
14-
{"contents": "```rescript\nint => int\n```\n\nSome doc comment"}
14+
{"contents": {"kind": "markdown", "value": "```rescript\nint => int\n```\n\nSome doc comment"}}
1515

1616
Hover src/Hover.res 26:6
17-
{"contents": "```rescript\nint\n```"}
17+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}}
1818

1919
Hover src/Hover.res 33:4
20-
{"contents": "```rescript\nunit => int\n```\n\nDoc comment for functionWithTypeAnnotation"}
20+
{"contents": {"kind": "markdown", "value": "```rescript\nunit => int\n```\n\nDoc comment for functionWithTypeAnnotation"}}
2121

2222
Hover src/Hover.res 37:13
2323
getLocItem #5: heuristic for JSX and compiler combined:
2424
~x becomes Props#x
2525
heuristic for: [Props, x], give loc of `x`
2626
n1:Props n2:name
27-
{"contents": "```rescript\nstring\n```"}
27+
{"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}}
2828

2929
Hover src/Hover.res 42:15
3030
getLocItem #7: heuristic for JSX on type-annotated labeled (~arg:t):
@@ -33,28 +33,28 @@ Props has the location range of arg:t
3333
arg has the location range of arg
3434
heuristic for: [Props, arg], give loc of `arg`
3535
n1:Props n2:name
36-
{"contents": "```rescript\nstring\n```"}
36+
{"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}}
3737

3838
Hover src/Hover.res 46:10
39-
{"contents": "```rescript\nint\n```"}
39+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}}
4040

4141
Hover src/Hover.res 49:13
42-
{"contents": "```rescript\nmodule Logger = {\n let log: string => unit\n}\n```"}
42+
{"contents": {"kind": "markdown", "value": "```rescript\nmodule Logger = {\n let log: string => unit\n}\n```"}}
4343

4444
Hover src/Hover.res 54:7
45-
{"contents": "```rescript\nmodule Logger = {\n let log: string => unit\n}\n```"}
45+
{"contents": {"kind": "markdown", "value": "```rescript\nmodule Logger = {\n let log: string => unit\n}\n```"}}
4646

4747
Definition src/Hover.res 60:14
4848
{"uri": "Hover.res", "range": {"start": {"line": 49, "character": 12}, "end": {"line": 49, "character": 18}}}
4949

5050
Hover src/Hover.res 63:9
51-
{"contents": "```rescript\nmodule IdDefinedTwice = {\n let y: int\n let _x: int\n}\n```"}
51+
{"contents": {"kind": "markdown", "value": "```rescript\nmodule IdDefinedTwice = {\n let y: int\n let _x: int\n}\n```"}}
5252

5353
Hover src/Hover.res 74:7
54-
{"contents": "```rescript\nmodule A = {\n let x: int\n}\n```"}
54+
{"contents": {"kind": "markdown", "value": "```rescript\nmodule A = {\n let x: int\n}\n```"}}
5555

5656
Hover src/Hover.res 77:7
57-
{"contents": "```rescript\nmodule A = {\n let x: int\n}\n```"}
57+
{"contents": {"kind": "markdown", "value": "```rescript\nmodule A = {\n let x: int\n}\n```"}}
5858

5959
Hover src/Hover.res 91:10
6060
Nothing at that position. Now trying to use completion.
@@ -69,46 +69,46 @@ JSX <Comp1:[95:3->95:8] > _children:95:8
6969
null
7070

7171
Hover src/Hover.res 103:25
72-
{"contents": "```rescript\nfloat\n```"}
72+
{"contents": {"kind": "markdown", "value": "```rescript\nfloat\n```"}}
7373

7474
Hover src/Hover.res 106:21
75-
{"contents": "```rescript\nint\n```"}
75+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}}
7676

7777
Hover src/Hover.res 116:16
78-
{"contents": "```rescript\nAA.cond<[< #str(string)]> => AA.cond<[< #str(string)]>\n```\n\n\n```\n \n```\n```rescript\ntype AA.cond<'a> = 'a\n constraint 'a = [< #str(string)]\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C110%2C2%5D)\n\n---\n"}
78+
{"contents": {"kind": "markdown", "value": "```rescript\nAA.cond<[< #str(string)]> => AA.cond<[< #str(string)]>\n```\n\n---\n\n```\n \n```\n```rescript\ntype AA.cond<'a> = 'a\n constraint 'a = [< #str(string)]\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C110%2C2%5D)\n"}}
7979

8080
Hover src/Hover.res 119:25
81-
{"contents": "```rescript\nAA.cond<[< #str(string)]> => AA.cond<[< #str(string)]>\n```\n\n\n```\n \n```\n```rescript\ntype AA.cond<'a> = 'a\n constraint 'a = [< #str(string)]\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C110%2C2%5D)\n\n---\n"}
81+
{"contents": {"kind": "markdown", "value": "```rescript\nAA.cond<[< #str(string)]> => AA.cond<[< #str(string)]>\n```\n\n---\n\n```\n \n```\n```rescript\ntype AA.cond<'a> = 'a\n constraint 'a = [< #str(string)]\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C110%2C2%5D)\n"}}
8282

8383
Hover src/Hover.res 122:3
8484
Nothing at that position. Now trying to use completion.
8585
Attribute id:live:[122:0->122:5] label:live
8686
Completable: Cdecorator(live)
87-
{"contents": "The `@live` decorator is for reanalyze, a static analysis tool for ReScript that can do dead code analysis.\n\n`@live` tells the dead code analysis that the value should be considered live, even though it might appear to be dead. This is typically used in case of FFI where there are indirect ways to access values. It can be added to everything that could otherwise be considered unused by the dead code analysis - values, functions, arguments, records, individual record fields, and so on.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#live-decorator).\n\nHint: Did you know you can run an interactive code analysis in your project by running the command `> ReScript: Start Code Analyzer`? Try it!"}
87+
{"contents": {"kind": "markdown", "value": "The `@live` decorator is for reanalyze, a static analysis tool for ReScript that can do dead code analysis.\n\n`@live` tells the dead code analysis that the value should be considered live, even though it might appear to be dead. This is typically used in case of FFI where there are indirect ways to access values. It can be added to everything that could otherwise be considered unused by the dead code analysis - values, functions, arguments, records, individual record fields, and so on.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#live-decorator).\n\nHint: Did you know you can run an interactive code analysis in your project by running the command `> ReScript: Start Code Analyzer`? Try it!"}}
8888

8989
Hover src/Hover.res 125:4
90-
{"contents": "```rescript\n(. ()) => unit => int\n```"}
90+
{"contents": {"kind": "markdown", "value": "```rescript\n(. ()) => unit => int\n```"}}
9191

9292
Hover src/Hover.res 131:4
93-
{"contents": "```rescript\n(. ()) => (. ()) => int\n```"}
93+
{"contents": {"kind": "markdown", "value": "```rescript\n(. ()) => (. ()) => int\n```"}}
9494

9595
Hover src/Hover.res 134:4
96-
{"contents": "```rescript\n(. unit, unit) => int\n```"}
96+
{"contents": {"kind": "markdown", "value": "```rescript\n(. unit, unit) => int\n```"}}
9797

9898
Hover src/Hover.res 137:5
99-
{"contents": "```rescript\n(. ()) => unit => int\n```"}
99+
{"contents": {"kind": "markdown", "value": "```rescript\n(. ()) => unit => int\n```"}}
100100

101101
Hover src/Hover.res 144:9
102-
{"contents": "```rescript\nint\n```\n\ndoc comment 1"}
102+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n\ndoc comment 1"}}
103103

104104
Hover src/Hover.res 148:6
105-
{"contents": "```rescript\nint\n```\n\n doc comment 2 "}
105+
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n\n doc comment 2 "}}
106106

107107
Hover src/Hover.res 165:23
108-
{"contents": "```rescript\nfoo<bar>\n```\n\n\n```\n \n```\n```rescript\ntype foo<'a> = {content: 'a, zzz: string}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C161%2C2%5D)\n\n---\n\n\n\n```\n \n```\n```rescript\ntype bar = {age: int}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C162%2C2%5D)\n\n---\n"}
108+
{"contents": {"kind": "markdown", "value": "```rescript\nfoo<bar>\n```\n\n---\n\n```\n \n```\n```rescript\ntype foo<'a> = {content: 'a, zzz: string}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C161%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype bar = {age: int}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C162%2C2%5D)\n"}}
109109

110110
Hover src/Hover.res 167:22
111-
{"contents": "```rescript\nfoobar\n```\n\n\n```\n \n```\n```rescript\ntype foobar = foo<bar>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C163%2C2%5D)\n\n---\n"}
111+
{"contents": {"kind": "markdown", "value": "```rescript\nfoobar\n```\n\n---\n\n```\n \n```\n```rescript\ntype foobar = foo<bar>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C163%2C2%5D)\n"}}
112112

113113
Complete src/Hover.res 170:16
114114
posCursor:[170:16] posNoWhite:[170:15] Found expr:[170:5->170:16]
@@ -159,15 +159,15 @@ Completable: Cpath Value[y2].content.""
159159
}]
160160

161161
Hover src/Hover.res 197:4
162-
{"contents": "```rescript\nCompV4.props<int, string> => React.element\n```\n\n\n```\n \n```\n```rescript\ntype CompV4.props<'n, 's> = {n?: 'n, s: 's}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C190%2C2%5D)\n\n---\n\n\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n\n---\n"}
162+
{"contents": {"kind": "markdown", "value": "```rescript\nCompV4.props<int, string> => React.element\n```\n\n---\n\n```\n \n```\n```rescript\ntype CompV4.props<'n, 's> = {n?: 'n, s: 's}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C190%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n"}}
163163

164164
Hover src/Hover.res 202:16
165-
{"contents": "```rescript\nuseR\n```\n\n\n```\n \n```\n```rescript\ntype useR = {x: int, y: list<option<r<float>>>}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C200%2C0%5D)\n\n---\n\n\n\n```\n \n```\n```rescript\ntype r<'a> = {i: 'a, f: float}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C101%2C0%5D)\n\n---\n"}
165+
{"contents": {"kind": "markdown", "value": "```rescript\nuseR\n```\n\n---\n\n```\n \n```\n```rescript\ntype useR = {x: int, y: list<option<r<float>>>}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C200%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype r<'a> = {i: 'a, f: float}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C101%2C0%5D)\n"}}
166166

167167
Hover src/Hover.res 210:13
168168
Nothing at that position. Now trying to use completion.
169169
posCursor:[210:13] posNoWhite:[210:12] Found expr:[210:11->210:14]
170170
Pexp_ident usr:[210:11->210:14]
171171
Completable: Cpath Value[usr]
172-
{"contents": "```rescript\nuseR\n```\n\n\n```\n \n```\n```rescript\ntype useR = {x: int, y: list<option<r<float>>>}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C200%2C0%5D)\n\n---\n\n\n\n```\n \n```\n```rescript\ntype r<'a> = {i: 'a, f: float}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C101%2C0%5D)\n\n---\n"}
172+
{"contents": {"kind": "markdown", "value": "```rescript\nuseR\n```\n\n---\n\n```\n \n```\n```rescript\ntype useR = {x: int, y: list<option<r<float>>>}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C200%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype r<'a> = {i: 'a, f: float}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C101%2C0%5D)\n"}}
173173

0 commit comments

Comments
 (0)