Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
igolskyi opened this issue Nov 19, 2017 · 2 comments
Closed

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

igolskyi opened this issue Nov 19, 2017 · 2 comments
Assignees
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)

Comments

@igolskyi
Copy link

igolskyi commented Nov 19, 2017

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

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 20, 2017

This issue was moved to microsoft/TypeScript-TmLanguage#542

@mjbvz mjbvz closed this as completed Nov 20, 2017
@mjbvz mjbvz added upstream Issue identified as 'upstream' component related (exists outside of VS Code) grammar Syntax highlighting grammar javascript JavaScript support issues typescript Typescript support issues and removed editor labels Nov 20, 2017
@igolskyi
Copy link
Author

I want to pay attention, this behavior is not only in the typescript , but also in the native javascript.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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)
Projects
None yet
Development

No branches or pull requests

2 participants