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

Inlay hints missing for negative numbers #45393

Closed
alex-statsig opened this issue Aug 9, 2021 · 1 comment · Fixed by #45399
Closed

Inlay hints missing for negative numbers #45393

alex-statsig opened this issue Aug 9, 2021 · 1 comment · Fixed by #45399

Comments

@alex-statsig
Copy link

Issue Type: Bug

Create a function with a number argument in JavaScript, then call that function with a constant negative number.

Expected result is the inlay hint for the argument name should be shown, actual result is that its omitted (same as is done for named variables passed in).
Screen Shot 2021-08-09 at 2 38 38 PM

VS Code version: Code - Insiders 1.60.0-insider (Universal) (1ee61f368ee0570feeb220605578a8768d99e762, 2021-08-09T05:59:19.046Z)
OS version: Darwin arm64 20.2.0
Restricted Mode: No

@mjbvz mjbvz self-assigned this Aug 9, 2021
@mjbvz mjbvz transferred this issue from microsoft/vscode Aug 10, 2021
@mjbvz mjbvz removed their assignment Aug 10, 2021
@Kingwl
Copy link
Contributor

Kingwl commented Aug 10, 2021

Emmmmm.... negative numbers is something like minus(numeric literal) in TypeScript.

We may just handle this case?

/cc: @DanielRosenwasser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants