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

JavaScript rename not working for JSDoc param name for function assignment #32069

Open
usernamehw opened this issue Jun 23, 2019 · 2 comments
Open
Labels
Bug A bug in TypeScript
Milestone

Comments

@usernamehw
Copy link

Issue Type: Bug

  1. Try to rename item (at any place)
  2. item in code successfully renamed while JSDoc name stayed the same
/**
 * @param {*} item
 */
let f = function (item) {}

VS Code version: Code - Insiders 1.36.0-insider (9ff8ae037e8e6109d65e4b5e3eb3dc60cc187e21, 2019-06-21T07:52:00.716Z)
OS version: Windows_NT x64 10.0.18362

@mjbvz mjbvz transferred this issue from microsoft/vscode Jun 24, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Jun 24, 2019

Confirmed with TypeScript 3.6.0-dev.20190623

@mjbvz mjbvz removed their assignment Jun 24, 2019
@sandersn
Copy link
Member

Binding only works on function declarations right now.

/**
 * @param {*} item
 */
function f(item) {}

@sandersn sandersn added the Bug A bug in TypeScript label Jun 26, 2019
@sandersn sandersn added this to the Backlog milestone Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants