@@ -39,7 +39,7 @@ Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] test=T
39
39
"detail": "Two\n\ntype testVariant = One | Two | Three(int)",
40
40
"documentation": null,
41
41
"sortText": "A Two",
42
- "insertText": "Two",
42
+ "insertText": "{ Two} ",
43
43
"insertTextFormat": 2
44
44
}, {
45
45
"label": "Three(_)",
@@ -48,7 +48,7 @@ Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] test=T
48
48
"detail": "Three(int)\n\ntype testVariant = One | Two | Three(int)",
49
49
"documentation": null,
50
50
"sortText": "A Three(_)",
51
- "insertText": "Three(${1:_})",
51
+ "insertText": "{ Three(${1:_})} ",
52
52
"insertTextFormat": 2
53
53
}, {
54
54
"label": "TableclothMap",
@@ -74,31 +74,31 @@ Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyAr
74
74
"tags": [],
75
75
"detail": "#one\n\n[#one | #three(int, bool) | #two | #two2]",
76
76
"documentation": null,
77
- "insertText": "#one",
77
+ "insertText": "{ #one} ",
78
78
"insertTextFormat": 2
79
79
}, {
80
80
"label": "#three(_, _)",
81
81
"kind": 4,
82
82
"tags": [],
83
83
"detail": "#three(int, bool)\n\n[#one | #three(int, bool) | #two | #two2]",
84
84
"documentation": null,
85
- "insertText": "#three(${1:_}, ${2:_})",
85
+ "insertText": "{ #three(${1:_}, ${2:_})} ",
86
86
"insertTextFormat": 2
87
87
}, {
88
88
"label": "#two",
89
89
"kind": 4,
90
90
"tags": [],
91
91
"detail": "#two\n\n[#one | #three(int, bool) | #two | #two2]",
92
92
"documentation": null,
93
- "insertText": "#two",
93
+ "insertText": "{ #two} ",
94
94
"insertTextFormat": 2
95
95
}, {
96
96
"label": "#two2",
97
97
"kind": 4,
98
98
"tags": [],
99
99
"detail": "#two2\n\n[#one | #three(int, bool) | #two | #two2]",
100
100
"documentation": null,
101
- "insertText": "#two2",
101
+ "insertText": "{ #two2} ",
102
102
"insertTextFormat": 2
103
103
}]
104
104
@@ -112,23 +112,23 @@ Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyAr
112
112
"tags": [],
113
113
"detail": "#three(int, bool)\n\n[#one | #three(int, bool) | #two | #two2]",
114
114
"documentation": null,
115
- "insertText": "three(${1:_}, ${2:_})",
115
+ "insertText": "{ three(${1:_}, ${2:_})} ",
116
116
"insertTextFormat": 2
117
117
}, {
118
118
"label": "#two",
119
119
"kind": 4,
120
120
"tags": [],
121
121
"detail": "#two\n\n[#one | #three(int, bool) | #two | #two2]",
122
122
"documentation": null,
123
- "insertText": "two",
123
+ "insertText": "{ two} ",
124
124
"insertTextFormat": 2
125
125
}, {
126
126
"label": "#two2",
127
127
"kind": 4,
128
128
"tags": [],
129
129
"detail": "#two2\n\n[#one | #three(int, bool) | #two | #two2]",
130
130
"documentation": null,
131
- "insertText": "two2",
131
+ "insertText": "{ two2} ",
132
132
"insertTextFormat": 2
133
133
}]
134
134
@@ -150,3 +150,18 @@ Completable: Cexpression CJsxPropValue [div] muted
150
150
"documentation": null
151
151
}]
152
152
153
+ Complete src/CompletionJsxProps.res 18:29
154
+ posCursor:[18:29] posNoWhite:[18:28] Found expr:[18:12->18:32]
155
+ JSX <div:[18:12->18:15] onMouseEnter[18:16->18:28]=...__ghost__[0:-1->0:-1]> _children:18:30
156
+ Completable: Cexpression CJsxPropValue [div] onMouseEnter
157
+ [{
158
+ "label": "event => {}",
159
+ "kind": 12,
160
+ "tags": [],
161
+ "detail": "JsxEvent.Mouse.t => unit",
162
+ "documentation": null,
163
+ "sortText": "A",
164
+ "insertText": "{${1:event} => {$0}}",
165
+ "insertTextFormat": 2
166
+ }]
167
+
0 commit comments