The constant in lower case is defined as a variable #38735
Labels
grammar
Syntax highlighting grammar
javascript
JavaScript support issues
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
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 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
The text was updated successfully, but these errors were encountered: