@@ -8,76 +8,38 @@ Resolved opens 1 Stdlib
88ContextPath Value[thro]
99Path thro
1010[{
11- "label": "throw(MyCustomThingToThrow)",
12- "kind": 12,
13- "tags": [],
14- "detail": "User-defined Exception",
15- "documentation": null,
16- "filterText": "throw",
17- "insertText": "throw(MyCustomThingToThrow($0))",
18- "insertTextFormat": 2
19- }, {
20- "label": "throw(NoArgsToThrow)",
21- "kind": 12,
22- "tags": [],
23- "detail": "User-defined Exception",
24- "documentation": null,
25- "filterText": "throw",
26- "insertText": "throw(NoArgsToThrow)",
27- "insertTextFormat": 2
28- }, {
29- "label": "throw(Not_found)",
30- "kind": 12,
31- "tags": [],
32- "detail": "Built-in Exception",
33- "documentation": null,
34- "filterText": "throw",
35- "insertText": "throw(Not_found($0))",
36- "insertTextFormat": 2
37- }, {
38- "label": "throw(Invalid_argument)",
11+ "label": "JsError.throwWithMessage",
3912 "kind": 12,
4013 "tags": [],
41- "detail": "Built-in Exception ",
14+ "detail": "Throw a JavaScript error, example: `throw new Error(str)` ",
4215 "documentation": null,
43- "filterText": "throw",
44- "insertText": "throw(Invalid_argument($0))",
16+ "insertText": "JsError.throwWithMessage(\"$0\")",
4517 "insertTextFormat": 2
4618 }, {
47- "label": "throw(Assert_failure) ",
19+ "label": "JsExn. throw",
4820 "kind": 12,
4921 "tags": [],
50- "detail": "Built-in Exception ",
22+ "detail": "Throw any JavaScript value, example: throw 100 ",
5123 "documentation": null,
52- "filterText": "throw",
53- "insertText": "throw(Assert_failure($0))",
24+ "insertText": "JsExn.throw($0)",
5425 "insertTextFormat": 2
5526 }, {
56- "label": "throw(Failure)",
57- "kind": 12,
58- "tags": [],
59- "detail": "Built-in Exception",
60- "documentation": null,
61- "filterText": "throw",
62- "insertText": "throw(Failure($0))",
63- "insertTextFormat": 2
64- }, {
65- "label": "throw(Match_failure)",
27+ "label": "throw(MyCustomThingToThrow)",
6628 "kind": 12,
6729 "tags": [],
68- "detail": "Built-in Exception ",
30+ "detail": "exn ",
6931 "documentation": null,
7032 "filterText": "throw",
71- "insertText": "throw(Match_failure ($0))",
33+ "insertText": "throw(MyCustomThingToThrow ($0))",
7234 "insertTextFormat": 2
7335 }, {
74- "label": "throw(Division_by_zero )",
36+ "label": "throw(NoArgsToThrow )",
7537 "kind": 12,
7638 "tags": [],
77- "detail": "Built-in Exception ",
39+ "detail": "exn ",
7840 "documentation": null,
7941 "filterText": "throw",
80- "insertText": "throw(Division_by_zero )",
42+ "insertText": "throw(NoArgsToThrow )",
8143 "insertTextFormat": 2
8244 }]
8345
0 commit comments