You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code Lens cannot find the reference in Object Shorthand property names #117021
Steps to Reproduce:
There are three simple javascript files, and the code lens of the module a.js can only find 1 reference in c.js.
In the b.js, the a is referenced in the way of Object Shorthand property names, which is not be found in code lens.
a.js
const a = '123';
export default a;
b.js
import a from './a.js';
// referenced in the way of Object Shorthand property names, cannot be found by code lens.
console.log({a});
c.js
import a from './a.js';
console.log(a);
Does this issue occur when all extensions are disabled?: Yes
Activity
mjbvz commentedon Feb 19, 2021
Also happens in a single file:
mjbvz commentedon Sep 29, 2021
Should be fixed by updates TS change
To verify:
nztraveler commentedon Oct 12, 2021
Matt Bierner (@mjbvz) Thanks, it works with your suggested verify step. Nice work!