mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
more typescript specific rules
This commit is contained in:
parent
b0007945b9
commit
17e140249f
|
@ -99,7 +99,9 @@
|
|||
"variable": ["variable.other.readwrite.js"],
|
||||
"variable.readonly": ["variable.other.constant.object.js"],
|
||||
"function": ["entity.name.function.js"],
|
||||
"namespace": ["entity.name.type.module.js"]
|
||||
"namespace": ["entity.name.type.module.js"],
|
||||
"variable.defaultLibrary": ["support.variable.js"],
|
||||
"function.defaultLibrary": ["support.function.js"]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -110,7 +112,9 @@
|
|||
"variable": ["variable.other.readwrite.jsx"],
|
||||
"variable.readonly": ["variable.other.constant.object.jsx"],
|
||||
"function": ["entity.name.function.jsx"],
|
||||
"namespace": ["entity.name.type.module.jsx"]
|
||||
"namespace": ["entity.name.type.module.jsx"],
|
||||
"variable.defaultLibrary": ["support.variable.js"],
|
||||
"function.defaultLibrary": ["support.function.js"]
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
@ -88,7 +88,9 @@
|
|||
"variable": ["variable.other.readwrite.ts"],
|
||||
"variable.readonly": ["variable.other.constant.object.ts"],
|
||||
"function": ["entity.name.function.ts"],
|
||||
"namespace": ["entity.name.type.module.ts"]
|
||||
"namespace": ["entity.name.type.module.ts"],
|
||||
"variable.defaultLibrary": ["support.variable.ts"],
|
||||
"function.defaultLibrary": ["support.function.ts"]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -99,7 +101,9 @@
|
|||
"variable": ["variable.other.readwrite.tsx"],
|
||||
"variable.readonly": ["variable.other.constant.object.tsx"],
|
||||
"function": ["entity.name.function.tsx"],
|
||||
"namespace": ["entity.name.type.module.tsx"]
|
||||
"namespace": ["entity.name.type.module.tsx"],
|
||||
"variable.defaultLibrary": ["support.variable.tsx"],
|
||||
"function.defaultLibrary": ["support.function.tsx"]
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
@ -353,7 +353,7 @@ class TokenClassificationRegistry implements ITokenClassificationRegistry {
|
|||
if (selector.language !== language) {
|
||||
return -1;
|
||||
}
|
||||
score += 100;
|
||||
score += 10;
|
||||
}
|
||||
if (selector.type !== TOKEN_TYPE_WILDCARD) {
|
||||
const hierarchy = this.getTypeHierarchy(type);
|
||||
|
|
Loading…
Reference in a new issue