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

[Feature Request]: Show const hints for strings #177

Closed
Shtoyan opened this issue May 13, 2023 · 2 comments
Closed

[Feature Request]: Show const hints for strings #177

Shtoyan opened this issue May 13, 2023 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@Shtoyan
Copy link
Contributor

Shtoyan commented May 13, 2023

const hints show values for core classes, but not for your custom, extended ones

Please add hint value for string type consts (and maybe for class's and others too?).

const STRING_CONST="TEXT!";

function ConstTest() {
    log(Pi);            // vscode hint shows value for computed types
    log(STRING_CONST);  // not for a string tho :c
}

image

@EliotVU EliotVU added the enhancement New feature or request label May 13, 2023
@EliotVU
Copy link
Owner

EliotVU commented May 13, 2023

Technically the extension will only display the computed value of a const field. i.e. primitive types such as int, float, bool etc.

@Shtoyan Shtoyan changed the title [Bug]: Non-core const hints do not show values [Feature Request]: Show const hints for strings May 13, 2023
@Shtoyan
Copy link
Contributor Author

Shtoyan commented May 13, 2023

Oh god, I didn't check other types, I feel stupid. Yeah would be nice to have that enhancement.

I fixed the description and title, feel free to change further.

@EliotVU EliotVU added this to the 0.8 milestone Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants