Skip to content

PHP autoindent behavior is broken (since 1.108) #287498

@smuuf

Description

@smuuf

Type: Bug


Since last vscode update autoindent after pressing ENTER on a line before some text is acting up:

Image
Without extensions - vscode started with code --disable-extensions .

I suspect it might have been broken by this recently merged PR:

The lines are being unindented+pushed down instead of being just pushed down without changing the indentation.
(The final enter+indent in the gif - from 0 to the function-level - is fine, IMHO, I just tried it for completeness.)


VS Code version: Code 1.108.0 (94e8ae2, 2026-01-08T13:53:10.781Z)
OS version: Windows_NT x64 10.0.26220
Modes:
Remote OS version: Linux x64 4.4.0-26100-Microsoft

System Info
Item Value
CPUs AMD Ryzen 7 5800U with Radeon Graphics (16 x 1896)
GPU Status 2d_canvas: enabled
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_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.31GB (15.81GB free)
Process Argv --disable-extensions --folder-uri=vscode-remote://wsl+Ubuntu/mnt/w/app/www/app --remote=wsl+Ubuntu --crash-reporter-id 53734ff3-be0e-4e76-9f49-8777ec4d7bf8
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu
OS Linux x64 4.4.0-26100-Microsoft
CPUs AMD Ryzen 7 5800U with Radeon Graphics (16 x 0)
Memory (System) 31.31GB (15.81GB free)
VM 0%
Extensions disabled
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
9hi5e907:31436603
aj953862:31281341
6abeh943:31336334
envsactivate1:31353494
cloudbuttont:31379625
3efgi100_wstrepl:31403338
use-responses-api:31390855
je187915:31407605
ec5jj548:31422691
cp_cls_c_966_ss:31442353
c0683394:31419495
a5gib710:31434435
38bie571_auto:31426784
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_t:31432745
4g4b7572_control_gpt_5_mini:31444647
cp_cls_c_1081:31443829
nowdiget:31442216
nes-set-to-on:31441941
a43f0574:31442827

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions