-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
Help WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Description
π Search Terms
references exports namespace usage definition
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
π» Code
/// <reference path="fourslash.ts" />
// @module: commonjs
// @Filename: /mod.d.ts
//// export = React;
////
//// declare namespace React {
//// function /*1*/lazy(): void;
//// }
// @Filename: /index.ts
//// import { /*2*/lazy } from "./mod"
//// /*3*/lazy();
verify.baselineFindAllReferences("1", "2", "3");
π Actual behavior
No usage references are found at 1
but the original definition gets nicely found on both 2
and 3
π Expected behavior
I'd expect all 3 markers to return consistent results.
Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
Help WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases