Default word wrap setting is no longer applied to open files when VS Code is relaunched #232622
Description
Type: Bug
I am using the default word wrap settings, which wraps the lines of Markdown files when I open them during a session. However if I leave a Markdown file open when I close Code, its lines are no longer wrapped when I relaunch the application. To wrap them, I either have to type Alt + z
or close and reopen the file.
Steps to reproduce:
- Open Jack.md in Code and observe that the long line is wrapped.
- Close code and relaunch it. Ensure that the file is automatically reopened -- do not manually reopen it.
- Observe that the long line is no longer wrapped.
This occurs with all extensions disabled. I tried to reproduce it in the latest Insiders build, but I couldn't work out how to get it to reopen files that were open in the last session.
To be clear, this is not a duplicate of #103199 . That issue is a request for the preservation of custom word wrap settings per file, whereas I am pointing out that Code doesn't always honour the default settings.
VS Code version: Code 1.95.0 (912bb68, 2024-10-28T20:16:24.561Z)
OS version: Linux x64 5.15.0-124-generic
Modes:
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-1035G4 CPU @ 1.10GHz (8 x 1219) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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 video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
Load (avg) | 1, 1, 1 |
Memory (System) | 7.45GB (4.33GB free) |
Process Argv | --crash-reporter-id a5f80cc2-1946-4a5a-b5a0-95b3d7c0f4dc |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | unity |
XDG_CURRENT_DESKTOP | Unity |
XDG_SESSION_DESKTOP | unity |
XDG_SESSION_TYPE | x11 |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
iacca2:31156134
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
Activity