Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: use the latest beta. #777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions analysis/tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion analysis/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"@rescript/react": "^0.11.0-rc.3"
},
"dependencies": {
"rescript": "^11.0.0-alpha.1"
"rescript": "^11.0.0-beta.1"
}
}
8 changes: 4 additions & 4 deletions analysis/tests/src/expected/CodeLens.res.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Code Lens src/CodeLens.res
[{
"range": {"start": {"line": 9, "character": 4}, "end": {"line": 9, "character": 8}},
"command": {"title": "{\"name\": string} => React.element", "command": ""}
"command": {"title": "(. {\"name\": string}) => React.element", "command": ""}
}, {
"range": {"start": {"line": 4, "character": 4}, "end": {"line": 4, "character": 6}},
"command": {"title": "(~opt1: int=?, ~a: int, ~b: int, unit, ~opt2: int=?, unit, ~c: int) => int", "command": ""}
"command": {"title": "(. ~opt1: int=?, ~a: int, ~b: int, unit, ~opt2: int=?, unit, ~c: int) => int", "command": ""}
}, {
"range": {"start": {"line": 2, "character": 4}, "end": {"line": 2, "character": 7}},
"command": {"title": "(~age: int, ~name: string) => string", "command": ""}
"command": {"title": "(. ~age: int, ~name: string) => string", "command": ""}
}, {
"range": {"start": {"line": 0, "character": 4}, "end": {"line": 0, "character": 7}},
"command": {"title": "(int, int) => int", "command": ""}
"command": {"title": "(. int, int) => int", "command": ""}
}]

2 changes: 1 addition & 1 deletion analysis/tests/src/expected/CompletePrioritize1.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Path Test.
"label": "Test.add",
"kind": 12,
"tags": [],
"detail": "float => float",
"detail": "(. float) => float",
"documentation": null
}]

2 changes: 1 addition & 1 deletion analysis/tests/src/expected/CompletePrioritize2.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Path Test.
"label": "Test.add",
"kind": 12,
"tags": [],
"detail": "t => int",
"detail": "(. t) => int",
"documentation": null
}]

Expand Down
132 changes: 37 additions & 95 deletions analysis/tests/src/expected/Completion.res.txt
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ Path Dep.c
"label": "customDouble",
"kind": 12,
"tags": [1],
"detail": "int => int",
"detail": "(. int) => int",
"documentation": {"kind": "markdown", "value": "Deprecated: Use customDouble instead\n\nSome doc comment"}
}]

Expand All @@ -382,20 +382,8 @@ Package opens Pervasives.JsxModules.place holder
Resolved opens 1 pervasives
ContextPath Value[Lib, foo]
Path Lib.foo
Found type for function (~age: int, ~name: string) => string
[{
"label": "age",
"kind": 4,
"tags": [],
"detail": "int",
"documentation": null
}, {
"label": "name",
"kind": 4,
"tags": [],
"detail": "string",
"documentation": null
}]
Found type for function (. ~age: int, ~name: string) => string
[]

Complete src/Completion.res 26:13
posCursor:[26:13] posNoWhite:[26:12] Found expr:[26:3->26:13]
Expand Down Expand Up @@ -479,13 +467,13 @@ Path ForAuto.
"label": "ForAuto.abc",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}, {
"label": "ForAuto.abd",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}]

Expand Down Expand Up @@ -535,13 +523,7 @@ Completable: Cjsx([O, Comp], z, [z])
Package opens Pervasives.JsxModules.place holder
Resolved opens 1 pervasives
Path O.Comp.make
[{
"label": "zoo",
"kind": 4,
"tags": [],
"detail": "option<int>",
"documentation": null
}]
[]

Complete src/Completion.res 65:8
Attribute id:reac:[65:3->65:8] label:reac
Expand Down Expand Up @@ -579,14 +561,8 @@ Package opens Pervasives.JsxModules.place holder
Resolved opens 1 pervasives
ContextPath Value[Lib, foo]
Path Lib.foo
Found type for function (~age: int, ~name: string) => string
[{
"label": "age",
"kind": 4,
"tags": [],
"detail": "int",
"documentation": null
}]
Found type for function (. ~age: int, ~name: string) => string
[]

Complete src/Completion.res 74:26
posCursor:[74:26] posNoWhite:[74:25] Found expr:[74:11->74:26]
Expand All @@ -596,14 +572,8 @@ Package opens Pervasives.JsxModules.place holder
Resolved opens 1 pervasives
ContextPath Value[Lib, foo]
Path Lib.foo
Found type for function (~age: int, ~name: string) => string
[{
"label": "name",
"kind": 4,
"tags": [],
"detail": "string",
"documentation": null
}]
Found type for function (. ~age: int, ~name: string) => string
[]

Complete src/Completion.res 77:32
posCursor:[77:32] posNoWhite:[77:31] Found expr:[77:11->77:32]
Expand All @@ -613,14 +583,8 @@ Package opens Pervasives.JsxModules.place holder
Resolved opens 1 pervasives
ContextPath Value[Lib, foo]
Path Lib.foo
Found type for function (~age: int, ~name: string) => string
[{
"label": "name",
"kind": 4,
"tags": [],
"detail": "string",
"documentation": null
}]
Found type for function (. ~age: int, ~name: string) => string
[]

Complete src/Completion.res 82:5
posCursor:[82:5] posNoWhite:[82:4] Found expr:[80:8->86:1]
Expand All @@ -630,7 +594,7 @@ Package opens Pervasives.JsxModules.place holder
Resolved opens 1 pervasives
ContextPath Value[Lib, foo]
Path Lib.foo
Found type for function (~age: int, ~name: string) => string
Found type for function (. ~age: int, ~name: string) => string
[]

Complete src/Completion.res 90:13
Expand Down Expand Up @@ -777,7 +741,7 @@ Path my
"label": "myAmazingFunction",
"kind": 12,
"tags": [],
"detail": "(int, int) => int",
"detail": "(. int, int) => int",
"documentation": null
}]

Expand Down Expand Up @@ -918,13 +882,13 @@ Path Js.n
"label": "nullable",
"kind": 22,
"tags": [],
"detail": "type nullable<+'a>",
"documentation": {"kind": "markdown", "value": "\n A value of this type can be undefined, null or 'a. This type is equivalent to Js.Null_undefined.t.\n"}
"detail": "type nullable<'a> = Value('a) | Null | Undefined",
"documentation": null
}, {
"label": "null",
"kind": 22,
"tags": [],
"detail": "type null<+'a>",
"detail": "type null<'a> = Value('a) | Null",
"documentation": {"kind": "markdown", "value": "\n Nullable value of this type can be either null or 'a. This type is equivalent to Js.Null.t.\n"}
}]

Expand Down Expand Up @@ -1103,13 +1067,13 @@ Path ForAuto.
"label": "ForAuto.abc",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}, {
"label": "ForAuto.abd",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}]

Expand All @@ -1127,13 +1091,13 @@ Path ForAuto.a
"label": "abc",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}, {
"label": "abd",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}]

Expand Down Expand Up @@ -1335,14 +1299,8 @@ Resolved opens 3 Completion.res Completion.res pervasives
ContextPath Value[funRecord].someFun
ContextPath Value[funRecord]
Path funRecord
Found type for function (~name: string) => unit
[{
"label": "name",
"kind": 4,
"tags": [],
"detail": "string",
"documentation": null
}]
Found type for function (. ~name: string) => unit
[]

Complete src/Completion.res 296:11
posCursor:[296:11] posNoWhite:[296:10] Found expr:[296:3->296:11]
Expand Down Expand Up @@ -1572,20 +1530,8 @@ Package opens Pervasives.JsxModules.place holder
Resolved opens 3 Completion.res Completion.res pervasives
ContextPath Value[withCallback]
Path withCallback
Found type for function (~b: int) => callback
[{
"label": "b",
"kind": 4,
"tags": [],
"detail": "int",
"documentation": null
}, {
"label": "a",
"kind": 4,
"tags": [],
"detail": "int",
"documentation": null
}]
Found type for function (. ~b: int) => callback
[]

Complete src/Completion.res 326:21
posCursor:[326:21] posNoWhite:[326:20] Found expr:[326:3->326:21]
Expand All @@ -1597,14 +1543,8 @@ Resolved opens 3 Completion.res Completion.res pervasives
ContextPath Value[withCallback](~a)
ContextPath Value[withCallback]
Path withCallback
Found type for function (~b: int) => int
[{
"label": "b",
"kind": 4,
"tags": [],
"detail": "int",
"documentation": null
}]
Found type for function int
[]

Complete src/Completion.res 329:21
posCursor:[329:21] posNoWhite:[329:20] Found expr:[329:3->329:21]
Expand Down Expand Up @@ -1713,7 +1653,7 @@ Package opens Pervasives.JsxModules.place holder
Resolved opens 3 Completion.res Completion.res pervasives
ContextPath Value[ff]
Path ff
Found type for function (
Found type for function (.
~opt1: int=?,
~a: int,
~b: int,
Expand All @@ -1722,7 +1662,7 @@ Found type for function (
unit,
~c: int,
) => int
{"contents": {"kind": "markdown", "value": "```rescript\noption<int>\n```"}}
null

Complete src/Completion.res 355:23
posCursor:[355:23] posNoWhite:[355:22] Found expr:[0:-1->355:23]
Expand Down Expand Up @@ -1808,13 +1748,13 @@ Path ForAuto.
"label": "abc",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}, {
"label": "abd",
"kind": 12,
"tags": [],
"detail": "(t, int) => t",
"detail": "(. t, int) => t",
"documentation": null
}]

Expand Down Expand Up @@ -1864,13 +1804,13 @@ Path funRecord
"label": "someFun",
"kind": 5,
"tags": [],
"detail": "someFun: (~name: string) => unit\n\ntype funRecord = {\n someFun: (~name: string) => unit,\n stuff: string,\n}",
"detail": "someFun: (. ~name: string) => unit\n\ntype funRecord = {\n someFun: (. ~name: string) => unit,\n stuff: string,\n}",
"documentation": null
}, {
"label": "stuff",
"kind": 5,
"tags": [],
"detail": "stuff: string\n\ntype funRecord = {\n someFun: (~name: string) => unit,\n stuff: string,\n}",
"detail": "stuff: string\n\ntype funRecord = {\n someFun: (. ~name: string) => unit,\n stuff: string,\n}",
"documentation": null
}]

Expand Down Expand Up @@ -1967,7 +1907,7 @@ Path r
"label": "retAA",
"kind": 12,
"tags": [],
"detail": "unit => aa",
"detail": "(. unit) => aa",
"documentation": null
}, {
"label": "r",
Expand Down Expand Up @@ -2087,7 +2027,9 @@ Resolved opens 3 Completion.res Completion.res pervasives
ContextPath Value[ok]->g
ContextPath Value[ok]
Path ok
CPPipe env:Completion
CPPipe env:PervasivesU envFromCompletionItem:Completion
CPPipe type path:Belt.Result.t
CPPipe pathFromEnv:Belt.Result found:false
Path Belt.Result.g
[{
"label": "Belt.Result.getExn",
Expand Down
Loading