-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where type arg ctx wasnt passed along (#1064)
* fix issue where type arg ctx wasnt passed along * changelog
- Loading branch information
Showing
8 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module CatchResult = { | ||
@tag("ok") | ||
type t<'value> = | @as(true) Ok({value: 'value}) | @as(false) Error({errors: array<string>}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type someTyp = {test: bool} | ||
let catchResult = Support.CatchResult.Ok({ | ||
value: { | ||
test: true, | ||
}, | ||
}) | ||
|
||
// switch catchResult { | Ok({value: }) => () | ||
// ^com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Complete src/TypeArgCtx.res 7:36 | ||
posCursor:[7:36] posNoWhite:[7:35] Found pattern:[7:26->7:39] | ||
Ppat_construct Ok:[7:26->7:28] | ||
posCursor:[7:36] posNoWhite:[7:35] Found pattern:[7:29->7:38] | ||
Completable: Cpattern Value[catchResult]->variantPayload::Ok($0), recordField(value) | ||
Package opens Pervasives.JsxModules.place holder | ||
Resolved opens 1 pervasives | ||
ContextPath Value[catchResult] | ||
Path catchResult | ||
[{ | ||
"label": "{}", | ||
"kind": 22, | ||
"tags": [], | ||
"detail": "someTyp", | ||
"documentation": {"kind": "markdown", "value": "```rescript\ntype someTyp = {test: bool}\n```"}, | ||
"sortText": "A", | ||
"insertText": "{$0}", | ||
"insertTextFormat": 2 | ||
}] | ||
|