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

Wrong inlay hints for parameter names with "typescript.inlayHints.parameterNames.enabled": "literals" #55882

Closed
segevfiner opened this issue Sep 26, 2023 · 1 comment

Comments

@segevfiner
Copy link

πŸ”Ž Search Terms

inlay hints, parameter names, VS Code, tsserver

πŸ•— Version & Regression Information

  • This changed between versions 5.1.6 and 5.2.2

⏯ Playground Link

https://github.com/segevfiner/typescript-parameter-inlay-hints-issue

πŸ’» Code

setTimeout(() => {
    console.log("Hello, World!");
}, 1000);

πŸ™ Actual behavior

The parameter hint for the second parameter shows as callback: in 5.2.2, which is wrong.

πŸ™‚ Expected behavior

It shows as ms:, which is correct.

Additional information about the issue

VS Code 1.82.2.

This doesn't happen in 5.1.6. Which can be seen by switching the TypeScript version in the project to 5.1.6, and setting VS Code to use the workspace version.

@IllusionMH
Copy link
Contributor

Duplicate of #55866

Has almost same title as this one

@segevfiner segevfiner closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2023
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

No branches or pull requests

2 participants