e.g. in a python file, press F2 to carry out a function name renaming (or refactoring), press enter, there are quite a few unexpected new lines added to the file.
VS Code version: Code 1.62.3 (ccbaa2d27e38e5afa3e5c21c1c7bef4657064247, 2021-11-17T08:11:14.551Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Issue Type: Bug
e.g. in a python file, press F2 to carry out a function name renaming (or refactoring), press enter, there are quite a few unexpected new lines added to the file.
VS Code version: Code 1.62.3 (ccbaa2d27e38e5afa3e5c21c1c7bef4657064247, 2021-11-17T08:11:14.551Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (8 x 1896)| |GPU Status|2d_canvas: enabledgpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.85GB (3.85GB free)| |Process Argv|--crash-reporter-id b5444238-2750-4026-8bf6-da3b119796c5| |Screen Reader|no| |VM|0%|
Extensions (105)
Extension|Author (truncated)|Version ---|---|--- rainbow-brackets|2gu|0.0.6 better-comments|aar|2.1.0 html-snippets|abu|0.2.1 codesnap|adp|1.3.4 include-autocomplete|ajs|0.0.4 increment-selection|alb|0.2.0 Bookmarks|ale|13.2.2 project-manager|ale|12.4.0 vscode-sqlite|ale|0.14.0 auto-add-brackets|ali|0.12.0 All-Autocomplete|Ati|0.0.23 vscode-log-viewer|ber|0.12.2 unique-lines|bib|1.0.0 color-info|bie|0.7.0 vscode-intelephense-client|bme|1.8.0 xml2json|bui|1.2.4 path-intellisense|chr|2.6.0 texinfo|cis|0.2.3 highlight-line-vscode|cli|0.0.1 bracket-pair-colorizer|Coe|1.0.61 compulim-vscode-closetag|Com|1.2.0 doxdocgen|csc|1.3.2 transformer|dak|1.12.0 vscode-markdownlint|Dav|0.45.0 python-environment-manager|don|1.0.3 python-extension-pack|don|1.7.0 xml|Dot|2.5.1 LogFileHighlighter|emi|2.13.0 vscode-relative-line-numbers|ext|0.0.5 vscode-highlight|fab|1.5.1 file-icons|fil|1.0.29 auto-close-tag|for|0.5.13 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.9 code-runner|for|0.11.6 sort-json-array|fvc|3.0.1 mdmath|goe|2.7.4 beautify|Hoo|1.5.0 rest-client|hum|0.24.6 output-colorizer|IBM|0.1.2 highlight-icemode|ice|0.0.6 compareit|in4|0.0.2 path-autocomplete|ion|1.17.1 latex-workshop|Jam|8.22.0 better-cpp-syntax|jef|1.15.10 vscode-insertdatestring|jsy|2.3.0 auto-comment-blocks|kev|1.0.1 vsc-python-indent|Kev|1.14.2 vscode-format-context-menu|lac|1.0.4 vscode-smart-column-indenter|lmc|0.0.13 bison|lun|0.1.0 autoconf|mae|0.1.0 python-path|mge|0.0.11 HTMLHint|mka|0.10.0 theme-monokai-pro-vscode|mon|1.1.19 vscode-docker|ms-|1.18.0 python|ms-|2021.11.1422169775 jupyter|ms-|2021.10.1101450599 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.4 remote-containers|ms-|0.205.2 remote-ssh|ms-|0.66.1 remote-ssh-edit|ms-|0.66.1 remote-wsl|ms-|0.58.5 cmake-tools|ms-|1.9.2 cpptools|ms-|1.7.1 cpptools-extension-pack|ms-|1.1.0 reload|nat|0.0.6 color-highlight|nau|2.5.0 autodocstring|njp|0.5.4 indent-rainbow|ode|8.2.2 vscode-yaml-sort|Pas|5.1.2 subtle-brackets|raf|3.0.0 java|red|1.1.0 vscode-commons|red|0.0.6 vscode-xml|red|0.18.1 vscode-yaml|red|1.2.2 vscode-sort-json|ric|1.20.0 vscode-statusbar-json-path|ric|1.4.5 datetime|rid|2.1.1 ActiveFileInStatusBar|Ros|1.0.3 partial-diff|ryu|1.4.3 text-marker|ryu|1.11.0 trailing-spaces|sha|0.3.1 markdown-preview-enhanced|shd|0.6.1 indenticator|Sir|0.7.0 vscode-fileutils|sle|3.4.5 guides|spy|0.9.3 rewrap|stk|1.15.4 selectline-statusbar|tom|0.0.2 cmake|twx|0.0.17 sort-lines|Tyr|1.9.0 errorlens|use|3.4.1 vscodeintellicode|Vis|1.2.14 colonize|vms|2.2.2 vscode-java-debug|vsc|0.37.0 vscode-java-dependency|vsc|0.18.8 vscode-java-pack|vsc|0.19.0 vscode-java-test|vsc|0.33.0 vscode-maven|vsc|0.34.1 vscode-icons|vsc|11.8.0 vim|vsc|1.21.10 vscode-jumpy|wma|0.3.1 markdown-pdf|yza|1.4.4 markdown-all-in-one|yzh|3.4.0 (3 theme extensions excluded)A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 pythontb:30283811 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30384385 pythondataviewer:30285071 vscod805:30301674 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedt:30391933 pythonvspyt187:30373474 vsaa593cf:30376535 pythonvs932cf:30408637 vscop804cf:30404767 vs360:30404995 vsrem710:30405998 vscexrecpromp3t1:30407762 ```