Open
Description
From @Hoishin on February 28, 2018 4:58
By "default CommonJS exports" I mean
module.exports = something
, rather thanmodule.exports.foo = something
ormodule.exports = {foo: something}
Might belong to microsoft/vscode#21507, but I thought it is a bit different.
- VSCode Version: 1.20.1
- OS Version: macOS High Sierra Version 10.13.3
Steps to Reproduce:
module.exports
something
const f = 1234;
module.exports = f;
require
it
const f = require('./above-file');
console.log(f);
- The
f
inconsole.log
doesn't show references across files in Find All References. You can find references across files if you Find All References from the module file.
However,
module.exports.foo
something
const f = 1234;
module.exports.foo = f;
require
it
const {foo} = require('./above-file');
console.log(foo);
- The
foo
inconsole.log
DOES show reference across files in Find All References. You can find references across files if you Find All References from the module file.
Does this issue occur when all extensions are disabled?: Yes
Copied from original issue: microsoft/vscode#44700