Skip to content

Inlay hints displayed twice for folded functions/objects #129682

@IllusionMH

Description

@IllusionMH

Issue Type: Bug

Related to #129465 and #129381

Steps to reproduce:

  1. Enable "typescript.inlayHints.variableTypes.enabled": true and "typescript.inlayHints.functionLikeReturnTypes.enabled": true or corresponding JS settings.

  2. Create new TS or JS file and paste next code:

function test() {
    // code here
}

const obj = {
    a: 'test'
};

function testFolded() {
    // code here
}

const objFolded = {
    a: 'test'
};
  1. Fold testFolded and objFolded

image

TS Version 4.4.0-dev.20210708

VS Code version: Code - Insiders 1.59.0-insider (e437d42, 2021-07-28T05:13:47.114Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.72GB (18.24GB free)
Process Argv --crash-reporter-id cf52dbde-2c94-45c3-9bf3-45d8b9966b04
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256198
pythonvspyt639:30291487
pythontb:30258533
vspre833:30321513
pythonptprofiler:30281269
vsdfh931cf:30280410
vshan820:30294714
pythondataviewer:30285072
vscus158:30321503
pythonvsuse255:30319630
vscod805cf:30301675
pythonvspyt200:30323110
vscextlangct:30310089
vsccppwt:30312692
pythonvssor306:30340298
bridge0708:30335490

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions