File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
## master
14
14
15
+ #### :nail_care : Polish
16
+
17
+ - Change end position of cursor when completing ` Some(<fieldName>) ` in patterns. https://github.com/rescript-lang/rescript-vscode/pull/857
18
+
15
19
## 1.28.0
16
20
17
21
#### :bug : Bug Fix
Original file line number Diff line number Diff line change @@ -1275,7 +1275,7 @@ let rec completeTypedValue ~full ~prefix ~completionContext ~mode
1275
1275
Completion. createWithSnippet
1276
1276
~name: (" Some(" ^ fieldName ^ " )" )
1277
1277
~kind: (kindFromInnerType t) ~env
1278
- ~insert Text:(" Some(${1: " ^ fieldName ^ " }) " )
1278
+ ~insert Text:(" Some(" ^ fieldName ^ " )$0 " )
1279
1279
() ;
1280
1280
someAnyCase;
1281
1281
noneCase;
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ Path fnTakingRecord
196
196
"tags": [],
197
197
"detail": "otherRecord",
198
198
"documentation": null,
199
- "insertText": "Some(${1: nested}) ",
199
+ "insertText": "Some(nested)$0 ",
200
200
"insertTextFormat": 2
201
201
}, {
202
202
"label": "Some(_)",
@@ -616,7 +616,7 @@ Path fnTakingRecordWithOptVariant
616
616
"tags": [],
617
617
"detail": "someVariant",
618
618
"documentation": null,
619
- "insertText": "Some(${1: someVariant}) ",
619
+ "insertText": "Some(someVariant)$0 ",
620
620
"insertTextFormat": 2
621
621
}, {
622
622
"label": "Some(_)",
You can’t perform that action at this time.
0 commit comments