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

Usages not reported for ES6 destructuring in function signatures #7319

Closed
use-strict opened this issue Mar 1, 2016 · 2 comments
Closed

Usages not reported for ES6 destructuring in function signatures #7319

use-strict opened this issue Mar 1, 2016 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created

Comments

@use-strict
Copy link

TypeScript Version:

1.8.2

Code

interface A {
    someProp: boolean;
}

function test({someProp}: A) {
    console.log(someProp);
}

Expected behavior:
When searching for usages of someProp, the destructuring in test function should count. I am using VSCode, but I understand this is a language server feature.

Actual behavior:
The destructing statement in test function is not seen. Also, renaming with F2 doesn't affect this usage either.

@RyanCavanaugh
Copy link
Member

Probably the same root cause as #6312 but leaving both open in case it's not

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Mar 1, 2016
@mhegazy mhegazy added this to the TypeScript 2.0 milestone Mar 1, 2016
@mhegazy mhegazy assigned vladima and unassigned DanielRosenwasser Mar 18, 2016
@mhegazy mhegazy assigned sheetalkamat and unassigned vladima Apr 11, 2016
@sheetalkamat
Copy link
Member

@sheetalkamat sheetalkamat added the Duplicate An existing issue was already created label Apr 11, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

6 participants