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
(feat) TypeScript Inlay Hint #1855
Conversation
…nto inlay-hint2
…nto inlay-hint2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, this is impressive work - thank you so much!
Is this also available via |
This uses the VSCode TypeScript options to enable it. How does Neovim enable it for TS (through which option(s))? |
|
Neovim doesn't handle any of the https://github.com/typescript-language-server/typescript-language-server The
|
@polyzen you can read about the settings here: https://github.com/sveltejs/language-tools/tree/master/packages/language-server#settings , settings references are linked |
#1336
This is not enabled by default. You'll have to enable it with the TypeScript inlay hints configs of VSCode. There are multiple configs under
javascript.inlayHints.*
andtypescript.inlayHints.*
. Enable them based on your preference.implementation detail
The test is set up similarly to the diagnostics snapshot test. You can also run
yarn test --debug
to outputdebug.svelte
with inlay hints added to the original file as comments. for example:Screenshots
(enable all inlay hints options is really just too much for my taste lol)