Skip to content

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

Closed
@mjbvz

Description

@mjbvz

From @dedmazayukr on November 19, 2017 21:20

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

Copied from original issue: microsoft/vscode#38735

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions