From @Janne252 on July 26, 2018 8:24
- VSCode Version: 1.25.1
- OS Version: Windows 10 Pro 64-bit
Steps to Reproduce:
- Open an empty folder in VS Code
- Create a new TypeScript file with the following content:
declare const Foo: string;
declare const BAR: string;
- Add the following setting to the workspace settings:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "variable.other.constant.ts",
"settings": {
"foreground": "#FF0000"
}
}
]
}
- Enable "Developer: Inspect TM Scopes"
- Inspect the TextMate scopes of the constants
Foo and BAR

Note how the constant in all caps is scoped as variable.other.constant.ts

Note how the constant in camel case is incorrectly scoped as variable.other.readwrite.ts
Does this issue occur when all extensions are disabled?: Yes
Copied from original issue: microsoft/vscode#55119
From @Janne252 on July 26, 2018 8:24
Steps to Reproduce:
FooandBARNote how the constant in all caps is scoped as
variable.other.constant.tsNote how the constant in camel case is incorrectly scoped as
variable.other.readwrite.tsDoes this issue occur when all extensions are disabled?: Yes
Copied from original issue: microsoft/vscode#55119