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
If there is a nested switch inside of another switch, collapsing the code doesn't work properly when we try to collapse a case from the encapsulating switch.
E.g.
Collapsing case 1 here doesn't properly collapse the code:
switch (a) {
case 1:
{
switch (a){
case 2:
System.out.println("test1");
case 3:
System.out.println("test2");
}
}
case 4:
{
System.out.println("test3");
}
}
It collapses up untill the first occurance of a "case" keyword, regardles of which switch the case belongs to, instead of collapsing at the first occurance of a case keyword from the same switch.
Regular:
Failed collapse:
Expected behaviour:
Extension version: 1.11.0
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No
System Info
Item
Value
CPUs
AMD Ryzen 7 5800H with Radeon Graphics (16 x 3194)
Type: Bug
If there is a nested switch inside of another switch, collapsing the code doesn't work properly when we try to collapse a case from the encapsulating switch.
E.g.
Collapsing case 1 here doesn't properly collapse the code:
It collapses up untill the first occurance of a "case" keyword, regardles of which switch the case belongs to, instead of collapsing at the first occurance of a case keyword from the same switch.
Regular:
Failed collapse:
Expected behaviour:
Extension version: 1.11.0
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: