Open
Description
π Search Terms
missing reference
π Version & Regression Information
- Typescript 5.8.3 with VisualStudio Code 1.100.2
- Typescript 5.0.2 with MonacoEditor 0.39.0
β― Playground Link
No response
π» Code
bugReportApi.d.ts
declare module '@bug/api/index' {
export * from "@bug/api/miscFunctions";
}
declare module '@bug/api/miscFunctions' {
export function myFunction(testParam: string): Promise<void>;
}
declare namespace bug.v0 {const api: typeof import('@bug/api/index')}
test.ts
bug.v0.api.myFunction('test')
π Actual behavior
When I search for references to "myFunction", I only find the declaration in 'bugReportApi.d.ts', but not its usage in 'test.ts'.
However, if I copy the contents of 'bugReportApi.d.ts' into a new file named 'bugReportApiC.d.ts' and search for references again, I find two declarations ('bugReportApi.d.ts' and 'bugReportApiC.d.ts') as well as the usage in 'test.ts'.
π Expected behavior
The usage in 'test.ts' is found as reference.
Additional information about the issue
Maybe it's the same issue as #61741