π Search Terms
references exports namespace usage definition
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
https://www.typescriptlang.org/play/?module=1#code/PTAEAEFsHsBMFcA2BTAXKAxtSMB2ArAZwChkAPAB2gCcAXUAXlACVkBDDWgbmONmQyI21ZKFxtIyQhQ6jWHegG9ioUADN4uTgEtouUMABUARkNghALwCeACgCU6AG7RtsHgF9e2yFTqhFoJZWoO7q1NigAEQAdMDauBTwtJE8xEYATGaBbNb2PEA
π» 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
π Search Terms
references exports namespace usage definition
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?module=1#code/PTAEAEFsHsBMFcA2BTAXKAxtSMB2ArAZwChkAPAB2gCcAXUAXlACVkBDDWgbmONmQyI21ZKFxtIyQhQ6jWHegG9ioUADN4uTgEtouUMABUARkNghALwCeACgCU6AG7RtsHgF9e2yFTqhFoJZWoO7q1NigAEQAdMDauBTwtJE8xEYATGaBbNb2PEA
π» Code
π Actual behavior
No usage references are found at
1but the original definition gets nicely found on both2and3π Expected behavior
I'd expect all 3 markers to return consistent results.
Additional information about the issue
No response