Skip to content

The constant in lower case is defined as a variable #38735

@igolskyi

Description

@igolskyi

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:

  1. Write for example: (lowercase and uppercase)
    const variable = 'as variable.other.readwrite';
    const CONSTANT = 'as variable.other.constant';

  2. Press ctrl+shift+p, and select Developer: Inspect TM Scope

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

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

Reproduces without extensions: Yes
Languages: javascript and typescript

Metadata

Metadata

Assignees

Labels

grammarSyntax highlighting grammarjavascriptJavaScript support issuestypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions