Open cspotcode opened 3 years ago
I updated the "version and regression info" which was wrong.
We talked about this a bit on the Community Discord. Here is a link in case it's helpful: https://discord.com/channels/508357248330760243/508357248330760249/826853657982533634
Bug Report
Summary: "find references" and "go to declaration" misses references across files when using allowJs
exports.foo = foo;
-style exports andconst {foo} = require(
-style imports.🔎 Search Terms
go to declaration find all references checkjs allowjs
🕗 Version & Regression Information
⏯ Playground Link
This cannot be demonstrated in the Bug Workbench, so I have created a Stackblitz reproduction linked to github. However, Stackblitz is also unable to reproduce it for some reason.
https://stackblitz.com/edit/typescript-repro-1 https://github.com/cspotcode/repros-stackblitz/tree/allowjs-declarations
💻 Code
🙁 Actual behavior
"Find references" on
foo
is missing references from other files. TheBUG:
comments in the example enumerate exactly what is wrong.🙂 Expected behavior
"Go to definition" for all
foo
identifiers should link toasync function foo()
"Find references" for anyfoo
identifiers should list all references in both .js files.