You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been pointed by the Visual Studio Core team here:
I'm not sure if the current behaviour may be by intention and correctly interpreted by JSDoc parsers:
Nonetheless, when Visual Studio Code's Quick Fix solves the TypeScript linter warning: "unused function parameter" by prepending a parameter name with an underscore, it doesn't rename the corresponding JSDoc parameter reference accordingly:
)
* Fix prepending unused TypeScript variables with underscore doesn't rename JSDoc @param.
Fix test for quick fix "Prefix all unused declarations with '_' where possible".
Fixes#33021.
* Replace FindAllReferences.Core.eachSymbolReferenceInFile function call to more ligher call of getJSDocParameterTags when searching for a parameter in jsdoc.
* Remove redundant constant declaration.
* Add test for prefix single unused parameter in jsdoc.
TypeScript Version: The one Visual Studio Code 1.37.1 is using.
Search Terms: is:issue is:open prepending underscore jsdoc
I've been pointed by the Visual Studio Core team here:
I'm not sure if the current behaviour may be by intention and correctly interpreted by JSDoc parsers:
Nonetheless, when Visual Studio Code's Quick Fix solves the TypeScript linter warning: "unused function parameter" by prepending a parameter name with an underscore, it doesn't rename the corresponding JSDoc
parameter
reference accordingly:I suppose, it should, though.
/ref: /microsoft/vscode/issues/79574
The text was updated successfully, but these errors were encountered: