microsoft / vscode

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

Editor scrolls horizontally with wrapping enabled #228436

Open Studio384 opened 1 month ago

Studio384 commented 1 month ago

Type: Bug

When wrapping is enabled, the editor scrolls horizontally anyways as it seems to create padding to compensate for the scrollbar. Personally, I enable wrapping to not have a horizontal scrollbar.

With the minimap enabled, this issue becomes even more apparent as the file contents can go underneath the minimap. The vertical scrollbar and minimap creating a horizontal scrollbar should not happen.

VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z) OS version: Windows_NT x64 10.0.22635 Modes:

System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i5-13600K (20 x 3494)| |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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.78GB (0.55GB free)| |Process Argv|--crash-reporter-id 3bc3458f-79a6-4a53-8489-c57e503ec37c| |Screen Reader|no| |VM|0%|
Extensions (28) Extension|Author (truncated)|Version ---|---|--- vscode-intelephense-client|bme|1.12.6 vscode-tailwindcss|bra|0.12.10 laravel-blade|cjh|1.1.2 js-codeformer|cms|2.6.1 jsrefactor|cms|3.0.1 vscode-eslint|dba|3.0.10 EditorConfig|Edi|0.16.4 prettier-vscode|esb|11.0.0 vscode-github-actions|git|0.26.5 vscode-pull-request-github|Git|0.96.0 elixir-ls|Jak|0.23.1 mediawiki|jas|0.0.4 rainbow-csv|mec|3.12.0 template-string-converter|meg|0.6.1 kamailio-syntax|mic|1.0.8 debugpy|ms-|2024.10.0 python|ms-|2024.14.1 vscode-pylance|ms-|2024.9.1 vscode-react-native|msj|1.13.0 material-icon-theme|PKi|5.10.0 prisma|Pri|5.19.1 vscode-xml|red|0.27.1 vscode-blade-formatter|shu|0.24.2 vscode-scss-formatter|sib|3.0.0 vscode-stylelint|sty|1.4.0 vscode-mdx|uni|1.8.10 explorer|vit|1.2.8 pretty-ts-errors|Yoa|0.6.0 (1 theme extensions excluded)
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 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 bdiig495:31013172 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 flightc:31134773 wkspc-onlycs-t:31132770 wkspc-ranged-t:31125599 ei213698:31121563 ```
vs-code-engineering[bot] commented 1 month ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.93.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!