-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Implement inlay hints #300
Comments
It's not possible to add inline virtual text on both vim and neovim, so send your feature request to vim/neovim fist. |
It could work with virtual text at the end of the line in Neovim, like coc-rust-analyzer |
I'll take a look on this after TS 4.4 released. There're several works:
|
Test code: // enumMemberValues
enum E1 {
A,
B,
}
enum E2 {
A = 0,
B = 1,
}
// functionLikeReturnTypes
function foo() {
return Date.now()
}
function bar(): number {
return Date.now()
}
// parameterNames
parseInt('123', 8)
// parameterTypes
document.addEventListener('click', e => {
console.log(e)
})
// propertyDeclarationTypes
class Bar {
prop = Date.now;
}
// variableTypes
const xxf = Date.now() In VSCode: In coc, only Because we can't set inline virtual text, @chemzqm any thoughts on this? Do we need to add this in coc-tsserver? |
The |
How is this going, guys? Any updates? When can we use this feature? |
Announcement: https://devblogs.microsoft.com/typescript/announcing-typescript-4-4-beta/#inlay-hints
Linked PR: microsoft/TypeScript#42089 (was already merged)
I believe this has not yet landed on a stable release although 4.4 is scheduled for next month already
The text was updated successfully, but these errors were encountered: