File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed
Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,16 @@ type somePolyVariant = [#one | #two(bool)]
2424
2525// let x: somePolyVariant = #o
2626// ^com
27+
28+ type someFunc = (int , string ) => bool
29+
30+ // let x: someFunc =
31+ // ^com
32+
33+ type someTuple = (bool , option <bool >)
34+
35+ // let x: someTuple =
36+ // ^com
37+
38+ // let x: someTuple = (true, )
39+ // ^com
Original file line number Diff line number Diff line change @@ -110,3 +110,61 @@ Completable: Cexpression Type[somePolyVariant]=#o
110110 "insertTextFormat": 2
111111 }]
112112
113+ Complete src/CompletionTypeAnnotation.res 29:20
114+ XXX Not found!
115+ Completable: Cexpression Type[someFunc]
116+ [{
117+ "label": "(v1, v2) => {}",
118+ "kind": 12,
119+ "tags": [],
120+ "detail": "(int, string) => bool",
121+ "documentation": null,
122+ "sortText": "A",
123+ "insertText": "(${1:v1}, ${2:v2}) => {$0}",
124+ "insertTextFormat": 2
125+ }]
126+
127+ Complete src/CompletionTypeAnnotation.res 34:21
128+ XXX Not found!
129+ Completable: Cexpression Type[someTuple]
130+ [{
131+ "label": "(_, _)",
132+ "kind": 12,
133+ "tags": [],
134+ "detail": "(bool, option<bool>)",
135+ "documentation": null,
136+ "insertText": "(${1:_}, ${2:_})",
137+ "insertTextFormat": 2
138+ }]
139+
140+ Complete src/CompletionTypeAnnotation.res 37:28
141+ XXX Not found!
142+ Completable: Cexpression Type[someTuple]->tuple($1)
143+ [{
144+ "label": "None",
145+ "kind": 4,
146+ "tags": [],
147+ "detail": "bool",
148+ "documentation": null
149+ }, {
150+ "label": "Some(_)",
151+ "kind": 4,
152+ "tags": [],
153+ "detail": "bool",
154+ "documentation": null,
155+ "insertText": "Some(${1:_})",
156+ "insertTextFormat": 2
157+ }, {
158+ "label": "Some(true)",
159+ "kind": 4,
160+ "tags": [],
161+ "detail": "bool",
162+ "documentation": null
163+ }, {
164+ "label": "Some(false)",
165+ "kind": 4,
166+ "tags": [],
167+ "detail": "bool",
168+ "documentation": null
169+ }]
170+
You can’t perform that action at this time.
0 commit comments