Why the constant in lower case is defined as a variable ? The constant must be constant, regardless of the register.
- VSCode Version: Version 1.18.1
- OS Version: Ubuntu 17.10
Steps to Reproduce:
-
Write for example: (lowercase and uppercase)
const variable = 'as variable.other.readwrite';
const CONSTANT = 'as variable.other.constant';
-
Press ctrl+shift+p, and select Developer: Inspect TM Scope
-
Click on word variable --> variable.other.readwrite (wrong)

-
Click on word CONSTANT --> variable.other.constant (correctly)

Reproduces without extensions: Yes
Languages: javascript and typescript
Why the constant in lower case is defined as a variable ? The constant must be constant, regardless of the register.
Steps to Reproduce:
Write for example: (lowercase and uppercase)
const variable = 'as variable.other.readwrite';const CONSTANT = 'as variable.other.constant';Press
ctrl+shift+p, and selectDeveloper: Inspect TM ScopeClick on word

variable--> variable.other.readwrite (wrong)Click on word

CONSTANT--> variable.other.constant (correctly)Reproduces without extensions: Yes
Languages: javascript and typescript