microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.53k stars 29.4k forks source link

Word Wrap Repeatedly Re-Enables Itself #146118

Closed michael-crawford closed 2 years ago

michael-crawford commented 2 years ago

We have written the needed data into your clipboard because it was too large to send. Please paste. Issue Type: Bug

I have disabled word wrap in settings. I want it to stay disabled - I never want to see lines wrap in code.

VS Code re-enables line-wrap despite this setting almost within seconds of disabling it using the view>Word Wrap menu. Every time I switch to a new file, or open and close a file, or even if I just wait a minute or two. So, I have to turn this back off again every 30 seconds to 2 minutes.

VS Code version: Code 1.65.2 (Universal) (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:49.188Z) OS version: Darwin x64 20.6.0 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|2, 2, 2| |Memory (System)|16.00GB (0.16GB free)| |Process Argv|. --crash-reporter-id b819f842-d35d-4ab3-8e67-ede05ff01c9f| |Screen Reader|no| |VM|0%|
Extensions (47) Extension|Author (truncated)|Version ---|---|--- terraform|4op|0.2.5 aws-toolkit-vscode|ama|1.37.0 github-markdown-preview|bie|0.2.0 markdown-checkbox|bie|0.3.2 markdown-emoji|bie|0.2.1 markdown-footnotes|bie|0.0.7 markdown-preview-github-styles|bie|1.0.1 markdown-yaml-preamble|bie|0.1.0 vscode-markdownlint|Dav|0.46.0 vscode-eslint|dba|2.2.2 githistory|don|0.6.19 gitlens|eam|12.0.5 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.24 vscode-great-icons|emm|2.1.84 vsc-material-theme|Equ|33.1.2 vsc-material-theme-icons|equ|1.2.2 prettier-vscode|esb|9.4.0 vscode-pull-request-github|Git|0.38.1 gitlab-workflow|Git|3.41.2 go|gol|0.32.0 terraform|has|2.21.0 git-graph|mhu|1.30.0 theme-monokai-pro-vscode|mon|1.1.20 vscode-docker|ms-|1.21.0 vscode-kubernetes-tools|ms-|1.3.7 python|ms-|2022.2.1924087327 vscode-pylance|ms-|2022.3.3 jupyter|ms-|2022.2.1030672458 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.6 remote-containers|ms-|0.224.3 remote-ssh|ms-|0.76.1 remote-ssh-edit|ms-|0.76.1 remote-wsl|ms-|0.64.2 vscode-remote-extensionpack|ms-|0.21.0 cpptools|ms-|1.9.7 powershell|ms-|2021.12.0 vscode-yaml|red|1.5.1 synthwave-vscode|Rob|0.1.11 trailing-spaces|sha|0.3.1 open-in-browser|tec|2.0.0 vscodeintellicode|Vis|1.2.17 vscode-arduino|vsc|0.4.11 vscode-icons|vsc|11.10.0 markdown-pdf|yza|1.4.4 material-theme|zhu|3.13.20 (5 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30443607 pythontb:30283811 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vsclayoutctrt:30451275 dsvsc009:30452663 pythonvsnew555:30457759 vscscmwlcmc:30438804 vscgsvid2:30447481 vscaat:30438848 pynewfile477:30450038 ```
gjsjohnmurray commented 2 years ago

Does https://github.com/microsoft/vscode/issues/139340#issuecomment-1008630140 apply to your situation?

If not, please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions.

michael-crawford commented 2 years ago

Does #139340 apply to your situation? I don't think so, the code I'm updating on a new MacBook Pro was developed in VS Code a couple years back on a different MBP, and this issue did not occur, with a similar set of extensions loaded.

The maximum line length in files where this occurs is perhaps only 160 chars. Though, I do have other files where it might be closer to 400 chars. These are long tag-specification options in AWS CLI commands. I just don't want them to wrap. It did not do this before.

gjsjohnmurray commented 2 years ago

Do you have Settings Sync enabled? If so, does its log reveal anything?

alexdima commented 2 years ago

@michael-crawford Does this reproduce when disabling all extensions? You can try the following:

initial step final
image image image
vscodenpa commented 2 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!