-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Provide snippet completions for @param
in JSDoc
#52370
Comments
snippet completors related to IDEs, not directly to typescript. However I guess you use VSCode and it already does what you want. |
TypeScript provides certain snippet completions for IDEs, such as object and class member completions and
It doesn't work if you have a preceding JSDoc comment declared using a /** @typedef {string} Id */
/**<- No comment scaffolding here
function foo(x, y, z) {
} |
Actually, that is itself TypeScript bug on the |
I still think things like the |
Best thing you can do right now is inserting the line /** @typedef {string} Id */
_;
/** <- will autocomplete
function foo(x, y, z) {
} When finished coding you can replace |
Thank you for the suggestions; however, I am a maintainer of the product and am aware of the workarounds. |
Things like
and more might be worthwhile to offer as snippet completions here. |
Today, we provide the expected
@param
JSDoc tag completion.However, if we're going by the book with JSDoc, the name of the parameter is already known. Can we provide snippet completions that contain the name of the parameter?
Thoughts:
The text was updated successfully, but these errors were encountered: