Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace text works not properly #10

Open
szymonPJO opened this issue Apr 29, 2022 · 9 comments
Open

Replace text works not properly #10

szymonPJO opened this issue Apr 29, 2022 · 9 comments

Comments

@szymonPJO
Copy link

szymonPJO commented Apr 29, 2022

When replace text in vscode, some files are duplicated to each other. The duplicate doing after replece text

vscode 1.66.2

@Natste
Copy link

Natste commented Jun 22, 2022

Also experiencing this issue in vscode v. 1.68.1.

Files are overwritten both when using find and replace and when using the Rename Symbol command. Overwritten in this context means that the contents of all files containing a match will be replaced with the contents of the file that has focus.

Luckily I've only had this happen on a handful of files at a time, as I imagine this issue could cause major problems for someone if it occurred on a large quantity.

Not sure if it has something to do with my setup, but I have disabled all other extensions to narrow down what was happening. The issue persists and is easily replicated with only this extension enabled: just use Rename Symbol or replace all for any string that appears in multiple files.

I don't think this was always an issue, so perhaps it has something to do with one of the configuration options.

@Kristallfee
Copy link

I have the same problems. I think it is connected to try to format several files at the same time.

@geoffdudds
Copy link

I'm also experiencing this. It renders the (otherwise very nice :)) extension not usable.

@szymonPJO
Copy link
Author

szymonPJO commented Jan 6, 2023

The issue (still) happening when formatOnSave is turned on, best solution I found is use format toggle and refactoring when formatOnSave is off

@UCSIG
Copy link

UCSIG commented Jan 23, 2023

I have the same problem with overwritten file content when replacing text across multiple files. Sadly, this means I can no longer use this extension

@TonyWelte
Copy link

I'm also affected by this issue and #16 . Disabling "Use Temp File" solved both issues for me

@NanXiao
Copy link

NanXiao commented Aug 16, 2023

@TonyWelte

I'm also affected by this issue and #16 . Disabling "Use Temp File" solved both issues for me

Just curious, is there any side-effect of disabling "Use Temp File"? Thanks in advance!

@TonyWelte
Copy link

@NanXiao none that I have noticed

@NanXiao
Copy link

NanXiao commented Aug 17, 2023

@TonyWelte

@NanXiao none that I have noticed

Got it, thanks very much for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants