Skip to content

Commit f11b5ea

Browse files
committed
remove explicit signature help uncurried test file
1 parent 8bbace5 commit f11b5ea

File tree

3 files changed

+36
-510
lines changed

3 files changed

+36
-510
lines changed

analysis/tests/src/SignatureHelpUncurried.res

Lines changed: 0 additions & 78 deletions
This file was deleted.

analysis/tests/src/expected/SignatureHelp.res.txt

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ ContextPath Value[someFunc]
1010
Path someFunc
1111
argAtCursor: unlabelled<0>
1212
extracted params:
13-
[]
13+
[int, ~two: string=?, ~three: unit => unit, ~four: someVariant, unit]
1414
{
1515
"signatures": [{
1616
"label": "(\n int,\n ~two: string=?,\n ~three: unit => unit,\n ~four: someVariant,\n unit,\n) => unit",
17-
"parameters": [],
17+
"parameters": [{"label": [4, 7], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [11, 25], "documentation": {"kind": "markdown", "value": "```rescript\noption<string>\n```"}}, {"label": [29, 49], "documentation": {"kind": "markdown", "value": "```rescript\nunit => unit\n```"}}, {"label": [53, 71], "documentation": {"kind": "markdown", "value": "```rescript\nsomeVariant\n```\n```rescript\ntype someVariant = One | Two | Three\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22SignatureHelp.res%22%2C0%2C0%5D)"}}, {"label": [75, 79], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}],
1818
"documentation": {"kind": "markdown", "value": " Does stuff. "}
1919
}],
2020
"activeSignature": 0,
@@ -33,11 +33,11 @@ ContextPath Value[someFunc]
3333
Path someFunc
3434
argAtCursor: unlabelled<0>
3535
extracted params:
36-
[]
36+
[int, ~two: string=?, ~three: unit => unit, ~four: someVariant, unit]
3737
{
3838
"signatures": [{
3939
"label": "(\n int,\n ~two: string=?,\n ~three: unit => unit,\n ~four: someVariant,\n unit,\n) => unit",
40-
"parameters": [],
40+
"parameters": [{"label": [4, 7], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [11, 25], "documentation": {"kind": "markdown", "value": "```rescript\noption<string>\n```"}}, {"label": [29, 49], "documentation": {"kind": "markdown", "value": "```rescript\nunit => unit\n```"}}, {"label": [53, 71], "documentation": {"kind": "markdown", "value": "```rescript\nsomeVariant\n```\n```rescript\ntype someVariant = One | Two | Three\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22SignatureHelp.res%22%2C0%2C0%5D)"}}, {"label": [75, 79], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}],
4141
"documentation": {"kind": "markdown", "value": " Does stuff. "}
4242
}],
4343
"activeSignature": 0,
@@ -56,11 +56,11 @@ ContextPath Value[someFunc]
5656
Path someFunc
5757
argAtCursor: ~two
5858
extracted params:
59-
[]
59+
[int, ~two: string=?, ~three: unit => unit, ~four: someVariant, unit]
6060
{
6161
"signatures": [{
6262
"label": "(\n int,\n ~two: string=?,\n ~three: unit => unit,\n ~four: someVariant,\n unit,\n) => unit",
63-
"parameters": [],
63+
"parameters": [{"label": [4, 7], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [11, 25], "documentation": {"kind": "markdown", "value": "```rescript\noption<string>\n```"}}, {"label": [29, 49], "documentation": {"kind": "markdown", "value": "```rescript\nunit => unit\n```"}}, {"label": [53, 71], "documentation": {"kind": "markdown", "value": "```rescript\nsomeVariant\n```\n```rescript\ntype someVariant = One | Two | Three\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22SignatureHelp.res%22%2C0%2C0%5D)"}}, {"label": [75, 79], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}],
6464
"documentation": {"kind": "markdown", "value": " Does stuff. "}
6565
}],
6666
"activeSignature": 0,
@@ -79,11 +79,11 @@ ContextPath Value[someFunc]
7979
Path someFunc
8080
argAtCursor: ~two
8181
extracted params:
82-
[]
82+
[int, ~two: string=?, ~three: unit => unit, ~four: someVariant, unit]
8383
{
8484
"signatures": [{
8585
"label": "(\n int,\n ~two: string=?,\n ~three: unit => unit,\n ~four: someVariant,\n unit,\n) => unit",
86-
"parameters": [],
86+
"parameters": [{"label": [4, 7], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [11, 25], "documentation": {"kind": "markdown", "value": "```rescript\noption<string>\n```"}}, {"label": [29, 49], "documentation": {"kind": "markdown", "value": "```rescript\nunit => unit\n```"}}, {"label": [53, 71], "documentation": {"kind": "markdown", "value": "```rescript\nsomeVariant\n```\n```rescript\ntype someVariant = One | Two | Three\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22SignatureHelp.res%22%2C0%2C0%5D)"}}, {"label": [75, 79], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}],
8787
"documentation": {"kind": "markdown", "value": " Does stuff. "}
8888
}],
8989
"activeSignature": 0,
@@ -102,11 +102,11 @@ ContextPath Value[someFunc]
102102
Path someFunc
103103
argAtCursor: ~four
104104
extracted params:
105-
[]
105+
[int, ~two: string=?, ~three: unit => unit, ~four: someVariant, unit]
106106
{
107107
"signatures": [{
108108
"label": "(\n int,\n ~two: string=?,\n ~three: unit => unit,\n ~four: someVariant,\n unit,\n) => unit",
109-
"parameters": [],
109+
"parameters": [{"label": [4, 7], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [11, 25], "documentation": {"kind": "markdown", "value": "```rescript\noption<string>\n```"}}, {"label": [29, 49], "documentation": {"kind": "markdown", "value": "```rescript\nunit => unit\n```"}}, {"label": [53, 71], "documentation": {"kind": "markdown", "value": "```rescript\nsomeVariant\n```\n```rescript\ntype someVariant = One | Two | Three\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22SignatureHelp.res%22%2C0%2C0%5D)"}}, {"label": [75, 79], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}],
110110
"documentation": {"kind": "markdown", "value": " Does stuff. "}
111111
}],
112112
"activeSignature": 0,
@@ -125,11 +125,11 @@ ContextPath Value[someFunc]
125125
Path someFunc
126126
argAtCursor: ~four
127127
extracted params:
128-
[]
128+
[int, ~two: string=?, ~three: unit => unit, ~four: someVariant, unit]
129129
{
130130
"signatures": [{
131131
"label": "(\n int,\n ~two: string=?,\n ~three: unit => unit,\n ~four: someVariant,\n unit,\n) => unit",
132-
"parameters": [],
132+
"parameters": [{"label": [4, 7], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [11, 25], "documentation": {"kind": "markdown", "value": "```rescript\noption<string>\n```"}}, {"label": [29, 49], "documentation": {"kind": "markdown", "value": "```rescript\nunit => unit\n```"}}, {"label": [53, 71], "documentation": {"kind": "markdown", "value": "```rescript\nsomeVariant\n```\n```rescript\ntype someVariant = One | Two | Three\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22SignatureHelp.res%22%2C0%2C0%5D)"}}, {"label": [75, 79], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}],
133133
"documentation": {"kind": "markdown", "value": " Does stuff. "}
134134
}],
135135
"activeSignature": 0,
@@ -148,11 +148,11 @@ ContextPath Value[otherFunc]
148148
Path otherFunc
149149
argAtCursor: unlabelled<0>
150150
extracted params:
151-
[]
151+
[string, int, float]
152152
{
153153
"signatures": [{
154154
"label": "(string, int, float) => unit",
155-
"parameters": []
155+
"parameters": [{"label": [1, 7], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [9, 12], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [14, 19], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}]
156156
}],
157157
"activeSignature": 0,
158158
"activeParameter": 0
@@ -170,11 +170,11 @@ ContextPath Value[otherFunc]
170170
Path otherFunc
171171
argAtCursor: unlabelled<0>
172172
extracted params:
173-
[]
173+
[string, int, float]
174174
{
175175
"signatures": [{
176176
"label": "(string, int, float) => unit",
177-
"parameters": []
177+
"parameters": [{"label": [1, 7], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [9, 12], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [14, 19], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}]
178178
}],
179179
"activeSignature": 0,
180180
"activeParameter": 0
@@ -192,11 +192,11 @@ ContextPath Value[otherFunc]
192192
Path otherFunc
193193
argAtCursor: unlabelled<2>
194194
extracted params:
195-
[]
195+
[string, int, float]
196196
{
197197
"signatures": [{
198198
"label": "(string, int, float) => unit",
199-
"parameters": []
199+
"parameters": [{"label": [1, 7], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [9, 12], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [14, 19], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}]
200200
}],
201201
"activeSignature": 0,
202202
"activeParameter": 2
@@ -214,11 +214,11 @@ ContextPath Value[Completion, Lib, foo]
214214
Path Completion.Lib.foo
215215
argAtCursor: ~age
216216
extracted params:
217-
[]
217+
[~age: int, ~name: string]
218218
{
219219
"signatures": [{
220220
"label": "(~age: int, ~name: string) => string",
221-
"parameters": []
221+
"parameters": [{"label": [1, 10], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [12, 25], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}]
222222
}],
223223
"activeSignature": 0,
224224
"activeParameter": 0
@@ -236,11 +236,11 @@ ContextPath Value[iAmSoSpecial]
236236
Path iAmSoSpecial
237237
argAtCursor: unlabelled<0>
238238
extracted params:
239-
[]
239+
[string]
240240
{
241241
"signatures": [{
242242
"label": "string => unit",
243-
"parameters": []
243+
"parameters": [{"label": [0, 6], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}]
244244
}],
245245
"activeSignature": 0,
246246
"activeParameter": 0
@@ -257,16 +257,16 @@ Package opens Pervasives.JsxModules.place holder
257257
Resolved opens 1 pervasives
258258
ContextPath Value[otherFunc]
259259
Path otherFunc
260-
argAtCursor: unlabelled<0>
260+
argAtCursor: unlabelled<1>
261261
extracted params:
262-
[]
262+
[string, int, float]
263263
{
264264
"signatures": [{
265265
"label": "(string, int, float) => unit",
266-
"parameters": []
266+
"parameters": [{"label": [1, 7], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [9, 12], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}, {"label": [14, 19], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}]
267267
}],
268268
"activeSignature": 0,
269-
"activeParameter": 0
269+
"activeParameter": 1
270270
}
271271

272272
Signature help src/SignatureHelp.res 62:17
@@ -281,11 +281,11 @@ ContextPath Value[fn]
281281
Path fn
282282
argAtCursor: unlabelled<1>
283283
extracted params:
284-
[]
284+
[int, string, int]
285285
{
286286
"signatures": [{
287287
"label": "(int, string, int) => unit",
288-
"parameters": []
288+
"parameters": [{"label": [1, 4], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [6, 12], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [14, 17], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}]
289289
}],
290290
"activeSignature": 0,
291291
"activeParameter": 1
@@ -303,11 +303,11 @@ ContextPath Value[fn]
303303
Path fn
304304
argAtCursor: unlabelled<1>
305305
extracted params:
306-
[]
306+
[int, string, int]
307307
{
308308
"signatures": [{
309309
"label": "(int, string, int) => unit",
310-
"parameters": []
310+
"parameters": [{"label": [1, 4], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [6, 12], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [14, 17], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}]
311311
}],
312312
"activeSignature": 0,
313313
"activeParameter": 1
@@ -325,11 +325,11 @@ ContextPath Value[fn]
325325
Path fn
326326
argAtCursor: unlabelled<2>
327327
extracted params:
328-
[]
328+
[int, string, int]
329329
{
330330
"signatures": [{
331331
"label": "(int, string, int) => unit",
332-
"parameters": []
332+
"parameters": [{"label": [1, 4], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [6, 12], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [14, 17], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}]
333333
}],
334334
"activeSignature": 0,
335335
"activeParameter": 2
@@ -349,11 +349,11 @@ ContextPath Value[iAmSoSpecial]
349349
Path iAmSoSpecial
350350
argAtCursor: unlabelled<0>
351351
extracted params:
352-
[]
352+
[string]
353353
{
354354
"signatures": [{
355355
"label": "string => unit",
356-
"parameters": []
356+
"parameters": [{"label": [0, 6], "documentation": {"kind": "markdown", "value": "```rescript\nstring\n```"}}]
357357
}],
358358
"activeSignature": 0,
359359
"activeParameter": 0
@@ -375,11 +375,11 @@ ContextPath Value[someFunc]
375375
Path someFunc
376376
argAtCursor: unlabelled<0>
377377
extracted params:
378-
[]
378+
[int, ~two: string=?, ~three: unit => unit, ~four: someVariant, unit]
379379
{
380380
"signatures": [{
381381
"label": "(\n int,\n ~two: string=?,\n ~three: unit => unit,\n ~four: someVariant,\n unit,\n) => unit",
382-
"parameters": [],
382+
"parameters": [{"label": [4, 7], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}, {"label": [11, 25], "documentation": {"kind": "markdown", "value": "```rescript\noption<string>\n```"}}, {"label": [29, 49], "documentation": {"kind": "markdown", "value": "```rescript\nunit => unit\n```"}}, {"label": [53, 71], "documentation": {"kind": "markdown", "value": "```rescript\nsomeVariant\n```\n```rescript\ntype someVariant = One | Two | Three\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22SignatureHelp.res%22%2C0%2C0%5D)"}}, {"label": [75, 79], "documentation": {"kind": "markdown", "value": "```rescript\nint\n```"}}],
383383
"documentation": {"kind": "markdown", "value": " Does stuff. "}
384384
}],
385385
"activeSignature": 0,

0 commit comments

Comments
 (0)