Skip to content

Hovers are not shown correctly for duplicate variables in a block #16632

@sandy081

Description

@sandy081

Testing #15359

See the following snippet

router.get('/', function (req, res, next) {
  let object;
  {
    let object = '5';
    object = 7;
  }
  object = someFunction();
  res.render('index', { title: 'Express' });
});


function someFunction() {
  return [1, 2, 3];
}

While debugging inside the block where object is defined again. Hovering on it is not giving correct value. After coming out of the block, all object hovers are showing the value returned by someFunction(). See the video

dec-06-2016 12-13-58

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions