vscode: Replace In All Files Broken with Latest Update

Type: Bug

  1. Modify a few files in a git repo.
  2. Perform a word replacement operation on several other files in the repo (search tab, replace all for all files).
  3. Look at the diff. I am consistently seeing that the files where the replacement should have occurred have instead replaced their entire file contents with one of the files changed in step 1!

My current workaround is to replace all words on a file-by-file basis, versus once globally.

VS Code version: Code 1.82.0 (8b617bd08fd9e3fc94d14adb8d358b56e3f72314, 2023-09-06T22:07:18.759Z) OS version: Linux x64 6.2.0-26-generic Modes:

System Info
Item Value
CPUs Intel® Core™ i7-6700 CPU @ 3.40GHz (8 x 3699)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 3, 2, 1
Memory (System) 46.92GB (34.96GB free)
Process Argv –unity-launch --crash-reporter-id feae7441-fc01-4dd5-8b1b-68b429fe2b90
Screen Reader no
VM 0%
DESKTOP_SESSION cinnamon
XDG_CURRENT_DESKTOP X-Cinnamon
XDG_SESSION_DESKTOP cinnamon
XDG_SESSION_TYPE x11
Extensions (36)
Extension Author (truncated) Version
vscode-diff-viewer cap 1.4.1
gitlens eam 14.3.0
shell-format fox 7.2.5
gitlab-workflow Git 3.76.1
vscode-graphviz joa 0.0.6
language-matlab Mat 1.1.2
git-graph mhu 1.30.0
vscode-docker ms- 1.26.0
isort ms- 2023.10.1
python ms- 2023.16.0
vscode-pylance ms- 2023.9.10
jupyter ms- 2023.8.1002501831
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.17
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
remote-containers ms- 0.309.0
remote-ssh ms- 0.106.1
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.81.2
vscode-remote-extensionpack ms- 0.24.0
cmake-tools ms- 1.15.31
cpptools ms- 1.17.5
cpptools-extension-pack ms- 1.3.0
live-server ms- 0.4.9
notepadplusplus-keybindings ms- 1.0.7
remote-explorer ms- 0.4.1
remote-server ms- 1.4.3
vscode-yaml red 1.14.0
markdown-preview-enhanced shd 0.7.3
code-spell-checker str 3.0.0
shellcheck tim 0.34.0
graphviz-interactive-preview tin 0.3.5
pdf tom 1.2.2
cmake twx 0.0.17
markdown-all-in-one yzh 3.5.1

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30803844
282f8724:30602487
f6dab269:30613381
2i9eh265:30646982
showlangstatbar:30737416
a2ce3375:30757347
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30821571
dsvsc015:30829745

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 1
  • Comments: 22 (10 by maintainers)

Most upvoted comments

Hmm, mine at least eventually resolve. Although this probably won’t fix it, what happens when you disable all extensions?

Bingo! SFTP v1.16.3 Natizyskunk natan-fourie.fr Is the culprit… Very bad news, that extension is all for my workflow! Thank you!!!

@cacsa For this, does this extension work with the previous version of VS Code? And if so, is it just that replace all doesn’t work?

I had to use a similar extension from somebody else. I tried previous versions and it did not work. I honestly forgot what I ended up doing but it was not just the other extension that fixed it. Sorry.

Hmm, mine at least eventually resolve. Although this probably won’t fix it, what happens when you disable all extensions?