File tree 1 file changed +16
-1
lines changed 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11
11
////String.raw`foo`;/*6*/
12
12
////String.raw `bar${3}`;/*7*/
13
13
////`Write ${ JSON.stringify("") } and ${ (765) } and ${ 346 }`;/*spaceInside*/
14
+ ////`
15
+ //// ${ JSON.stringify("") } and ${ (765) } and ${ 346 }`;/*spaceInsideNewline*/
14
16
/////*formatEnd*/
15
17
16
18
@@ -37,4 +39,17 @@ goTo.marker("7");
37
39
verify . currentLineContentIs ( "String.raw`bar${3}`;" ) ;
38
40
39
41
goTo . marker ( "spaceInside" ) ;
40
- verify . currentLineContentIs ( '`Write ${JSON.stringify("")} and ${(765)} and ${346}`;' ) ;
42
+ verify . currentLineContentIs ( '`Write ${JSON.stringify("")} and ${(765)} and ${346}`;' ) ;
43
+ goTo . marker ( "spaceInsideNewline" ) ;
44
+ verify . currentLineContentIs ( ' ${JSON.stringify("")} and ${(765)} and ${346}`;' ) ;
45
+
46
+ format . setOption ( 'InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces' , true ) ;
47
+
48
+ format . selection ( "formatStart" , "formatEnd" ) ;
49
+
50
+ goTo . marker ( "spaceInside" ) ;
51
+ verify . currentLineContentIs ( '`Write ${ JSON.stringify("") } and ${ (765) } and ${ 346 }`;' ) ;
52
+ goTo . marker ( "spaceInsideNewline" ) ;
53
+ verify . currentLineContentIs ( ' ${ JSON.stringify("") } and ${ (765) } and ${ 346 }`;' ) ;
54
+
55
+ format . setOption ( 'InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces' , false ) ;
You can’t perform that action at this time.
0 commit comments