-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Closed
Labels
typescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)
Description
- 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
FooandBAR

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

Note how the constant in camel case is incorrectly scoped asvariable.other.readwrite.ts
Does this issue occur when all extensions are disabled?: Yes
Metadata
Metadata
Assignees
Labels
typescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)