@@ -38,9 +38,7 @@ suite('themeColorReader', function () {
3838 test ( 'should match parent scope to child pattern' , function ( ) {
3939 // Theme scope "string" should match pattern "string.quoted"
4040 const theme : ThemeJson = {
41- tokenColors : [
42- { scope : 'string' , settings : { foreground : '#CE9178' } } ,
43- ] ,
41+ tokenColors : [ { scope : 'string' , settings : { foreground : '#CE9178' } } ] ,
4442 } ;
4543 const result = extractTokenOverrides ( theme ) ;
4644 expect ( result . string ) . to . equal ( '#CE9178' ) ;
@@ -116,11 +114,20 @@ suite('themeColorReader', function () {
116114 test ( 'should extract all supported token color types' , function ( ) {
117115 const theme : ThemeJson = {
118116 tokenColors : [
119- { scope : 'support.type.property-name' , settings : { foreground : '#9CDCFE' } } ,
117+ {
118+ scope : 'support.type.property-name' ,
119+ settings : { foreground : '#9CDCFE' } ,
120+ } ,
120121 { scope : 'string' , settings : { foreground : '#CE9178' } } ,
121122 { scope : 'constant.numeric' , settings : { foreground : '#B5CEA8' } } ,
122- { scope : 'constant.language.boolean' , settings : { foreground : '#569CD6' } } ,
123- { scope : 'constant.language.null' , settings : { foreground : '#569CD6' } } ,
123+ {
124+ scope : 'constant.language.boolean' ,
125+ settings : { foreground : '#569CD6' } ,
126+ } ,
127+ {
128+ scope : 'constant.language.null' ,
129+ settings : { foreground : '#569CD6' } ,
130+ } ,
124131 { scope : 'entity.name.type' , settings : { foreground : '#4EC9B0' } } ,
125132 { scope : 'comment' , settings : { foreground : '#6A9955' } } ,
126133 { scope : 'punctuation' , settings : { foreground : '#D4D4D4' } } ,
@@ -203,9 +210,7 @@ suite('themeColorReader', function () {
203210 } ) ;
204211 writeThemeFile ( tempDir , 'parent.json' , {
205212 include : './grandparent.json' ,
206- tokenColors : [
207- { scope : 'string' , settings : { foreground : '#444444' } } ,
208- ] ,
213+ tokenColors : [ { scope : 'string' , settings : { foreground : '#444444' } } ] ,
209214 } ) ;
210215 const childPath = writeThemeFile ( tempDir , 'child.json' , {
211216 include : './parent.json' ,
@@ -214,9 +219,9 @@ suite('themeColorReader', function () {
214219 ] ,
215220 } ) ;
216221 const result = parseThemeFile ( childPath , { } ) ;
217- expect ( result . comment ) . to . equal ( '#555555' ) ; // child
218- expect ( result . string ) . to . equal ( '#444444' ) ; // parent
219- expect ( result . number ) . to . equal ( '#333333' ) ; // grandparent
222+ expect ( result . comment ) . to . equal ( '#555555' ) ; // child
223+ expect ( result . string ) . to . equal ( '#444444' ) ; // parent
224+ expect ( result . number ) . to . equal ( '#333333' ) ; // grandparent
220225 } ) ;
221226
222227 test ( 'should handle circular includes without crashing' , function ( ) {
@@ -228,9 +233,7 @@ suite('themeColorReader', function () {
228233 } ) ;
229234 writeThemeFile ( tempDir , 'b.json' , {
230235 include : './a.json' ,
231- tokenColors : [
232- { scope : 'string' , settings : { foreground : '#BBBBBB' } } ,
233- ] ,
236+ tokenColors : [ { scope : 'string' , settings : { foreground : '#BBBBBB' } } ] ,
234237 } ) ;
235238 const aPath = path . join ( tempDir , 'a.json' ) ;
236239 // Should not throw or hang
@@ -268,7 +271,10 @@ suite('themeColorReader', function () {
268271 writeThemeFile ( tempDir , `${ i } .json` , {
269272 ...( include ? { include } : { } ) ,
270273 tokenColors : [
271- { scope : 'comment' , settings : { foreground : `#${ String ( i ) . padStart ( 6 , '0' ) } ` } } ,
274+ {
275+ scope : 'comment' ,
276+ settings : { foreground : `#${ String ( i ) . padStart ( 6 , '0' ) } ` } ,
277+ } ,
272278 ] ,
273279 } ) ;
274280 }
@@ -306,4 +312,3 @@ suite('themeColorReader', function () {
306312 } ) ;
307313 } ) ;
308314} ) ;
309-
0 commit comments