[rename on type] strange behavior with auto indent in closing tag #93006
Labels
bug
Issue identified by VS Code Team member as probable bug
editor-synced-region
Issues related to synced region functionality in editor
Milestone
Issue Type: Bug
Ref #88424
Set
"editor.autoIndent": "full"
(default) and"editor.renameOnType": true
Code for test
span
inside of closing tagspan
Open and closed tags are
<>
and</>
respectivelydiv
d
open tag is still<>
, closed tag is moved to the start of the line and has</d>
iv
it would be<iv>
and</div>
Setting
"editor.autoIndent": "advanced"
doesn't have this problem.Looks like wrong indent for closing tag might be related to #32871 but looks strange that
d
is lost in opening tag but other characters added after that./cc @octref
VS Code version: Code - Insiders 1.44.0-insider (c0eea2a, 2020-03-19T09:27:54.357Z)
OS version: Windows_NT x64 10.0.18363
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: