@@ -71,7 +71,7 @@ export namespace TokenStyle {
7171 }
7272}
7373
74- export type ProbeScope = string [ ] | string ;
74+ export type ProbeScope = string [ ] ;
7575
7676export interface TokenStyleFunction {
7777 ( theme : ITheme ) : TokenStyle | undefined ;
@@ -246,13 +246,13 @@ export function getTokenStyleRegistry(): ITokenStyleRegistry {
246246// colors
247247
248248
249- export const comments = registerTokenStyle ( 'comments' , { scopesToProbe : [ 'comment' ] , dark : null , light : null , hc : null } , nls . localize ( 'comments' , "Token style for comments." ) ) ;
250- export const strings = registerTokenStyle ( 'strings' , { scopesToProbe : [ 'string' ] , dark : null , light : null , hc : null } , nls . localize ( 'strings' , "Token style for strings." ) ) ;
251- export const keywords = registerTokenStyle ( 'keywords' , { scopesToProbe : [ 'keyword.control' , 'storage' , 'storage.type' ] , dark : null , light : null , hc : null } , nls . localize ( 'keywords' , "Token style for keywords." ) ) ;
252- export const numbers = registerTokenStyle ( 'numbers' , { scopesToProbe : [ 'constant.numeric' ] , dark : null , light : null , hc : null } , nls . localize ( 'numbers' , "Token style for numbers." ) ) ;
253- export const types = registerTokenStyle ( 'types' , { scopesToProbe : [ 'entity.name.type' , 'entity.name.class' , 'support.type' , 'support.class' ] , dark : null , light : null , hc : null } , nls . localize ( 'types' , "Token style for types." ) ) ;
254- export const functions = registerTokenStyle ( 'functions' , { scopesToProbe : [ 'entity.name.function' , 'support.function' ] , dark : null , light : null , hc : null } , nls . localize ( 'functions' , "Token style for functions." ) ) ;
255- export const variables = registerTokenStyle ( 'variables' , { scopesToProbe : [ 'variable' , 'entity.name.variable' ] , dark : null , light : null , hc : null } , nls . localize ( 'variables' , "Token style for variables." ) ) ;
249+ export const comments = registerTokenStyle ( 'comments' , { scopesToProbe : [ [ 'comment' ] ] , dark : null , light : null , hc : null } , nls . localize ( 'comments' , "Token style for comments." ) ) ;
250+ export const strings = registerTokenStyle ( 'strings' , { scopesToProbe : [ [ 'string' ] ] , dark : null , light : null , hc : null } , nls . localize ( 'strings' , "Token style for strings." ) ) ;
251+ export const keywords = registerTokenStyle ( 'keywords' , { scopesToProbe : [ [ 'keyword.control' ] , [ 'storage' ] , [ 'storage.type' ] ] , dark : null , light : null , hc : null } , nls . localize ( 'keywords' , "Token style for keywords." ) ) ;
252+ export const numbers = registerTokenStyle ( 'numbers' , { scopesToProbe : [ [ 'constant.numeric' ] ] , dark : null , light : null , hc : null } , nls . localize ( 'numbers' , "Token style for numbers." ) ) ;
253+ export const types = registerTokenStyle ( 'types' , { scopesToProbe : [ [ 'entity.name.type' ] , [ 'entity.name.class' ] , [ 'support.type' ] , [ 'support.class' ] ] , dark : null , light : null , hc : null } , nls . localize ( 'types' , "Token style for types." ) ) ;
254+ export const functions = registerTokenStyle ( 'functions' , { scopesToProbe : [ [ 'entity.name.function' ] , [ 'support.function' ] ] , dark : null , light : null , hc : null } , nls . localize ( 'functions' , "Token style for functions." ) ) ;
255+ export const variables = registerTokenStyle ( 'variables' , { scopesToProbe : [ [ 'variable' ] , [ 'entity.name.variable' ] ] , dark : null , light : null , hc : null } , nls . localize ( 'variables' , "Token style for variables." ) ) ;
256256
257257/**
258258 * @param colorValue Resolve a color value in the context of a theme
0 commit comments