-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42196 from KavinduZoysa/fix-issue-42127
Return user-defined errors in `create variable and check error` with check CA
- Loading branch information
Showing
134 changed files
with
6,295 additions
and
5 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
67 changes: 67 additions & 0 deletions
67
...action/create-variable/config-rename-positional-capability/createVariableWithCheck14.json
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,67 @@ | ||
{ | ||
"position": { | ||
"line": 5, | ||
"character": 16 | ||
}, | ||
"source": "createVariableWithCheck3.bal", | ||
"description": "Parent function has no return type", | ||
"expected": [ | ||
{ | ||
"title": "Create variable and check error", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 5, | ||
"character": 4 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"character": 4 | ||
} | ||
}, | ||
"newText": "int valueOrError1 = " | ||
}, | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 5, | ||
"character": 4 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"character": 4 | ||
} | ||
}, | ||
"newText": "check " | ||
}, | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 4, | ||
"character": 15 | ||
}, | ||
"end": { | ||
"line": 4, | ||
"character": 15 | ||
} | ||
}, | ||
"newText": " returns Error1?" | ||
} | ||
], | ||
"command": { | ||
"title": "Rename variable", | ||
"command": "ballerina.action.positional.rename", | ||
"arguments": [ | ||
"createVariableWithCheck3.bal", | ||
{ | ||
"line": 5, | ||
"character": 8 | ||
} | ||
] | ||
}, | ||
"resolvable": false | ||
} | ||
] | ||
} |
67 changes: 67 additions & 0 deletions
67
...action/create-variable/config-rename-positional-capability/createVariableWithCheck15.json
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,67 @@ | ||
{ | ||
"position": { | ||
"line": 15, | ||
"character": 12 | ||
}, | ||
"source": "createVariableWithCheck3.bal", | ||
"description": "Parent function has no return type", | ||
"expected": [ | ||
{ | ||
"title": "Create variable and check error", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 15, | ||
"character": 4 | ||
}, | ||
"end": { | ||
"line": 15, | ||
"character": 4 | ||
} | ||
}, | ||
"newText": "int valueOrError2 = " | ||
}, | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 15, | ||
"character": 4 | ||
}, | ||
"end": { | ||
"line": 15, | ||
"character": 4 | ||
} | ||
}, | ||
"newText": "check " | ||
}, | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 14, | ||
"character": 15 | ||
}, | ||
"end": { | ||
"line": 14, | ||
"character": 15 | ||
} | ||
}, | ||
"newText": " returns Error1|E3?" | ||
} | ||
], | ||
"command": { | ||
"title": "Rename variable", | ||
"command": "ballerina.action.positional.rename", | ||
"arguments": [ | ||
"createVariableWithCheck3.bal", | ||
{ | ||
"line": 15, | ||
"character": 8 | ||
} | ||
] | ||
}, | ||
"resolvable": false | ||
} | ||
] | ||
} |
67 changes: 67 additions & 0 deletions
67
...action/create-variable/config-rename-positional-capability/createVariableWithCheck16.json
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,67 @@ | ||
{ | ||
"position": { | ||
"line": 21, | ||
"character": 13 | ||
}, | ||
"source": "createVariableWithCheck3.bal", | ||
"description": "Parent function has no return type", | ||
"expected": [ | ||
{ | ||
"title": "Create variable and check error", | ||
"kind": "quickfix", | ||
"edits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 21, | ||
"character": 4 | ||
}, | ||
"end": { | ||
"line": 21, | ||
"character": 4 | ||
} | ||
}, | ||
"newText": "int valueOrError3 = " | ||
}, | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 21, | ||
"character": 4 | ||
}, | ||
"end": { | ||
"line": 21, | ||
"character": 4 | ||
} | ||
}, | ||
"newText": "check " | ||
}, | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 20, | ||
"character": 15 | ||
}, | ||
"end": { | ||
"line": 20, | ||
"character": 15 | ||
} | ||
}, | ||
"newText": " returns Error1|E3?" | ||
} | ||
], | ||
"command": { | ||
"title": "Rename variable", | ||
"command": "ballerina.action.positional.rename", | ||
"arguments": [ | ||
"createVariableWithCheck3.bal", | ||
{ | ||
"line": 21, | ||
"character": 8 | ||
} | ||
] | ||
}, | ||
"resolvable": false | ||
} | ||
] | ||
} |
Oops, something went wrong.