TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

JS merge quickinfo is inconsistent

Open weswigham opened this issue 4 years ago • 0 comments

Given this playground,

module.exports = class C {}
module.exports.fn = function() {}

quick info display on hover of class C depends on if you hover module.exports first or not. If you hover module.exports first, it's

(local class) C
module C

if you hover class C first, without hovering anything else, it's

(local class) C

The first - the version with module C - is the correct one. In the later case, we fail to merge the module and class symbols.

weswigham avatar Mar 10 '22 02:03 weswigham