vscode-zig icon indicating copy to clipboard operation
vscode-zig copied to clipboard

Extreme CPU usage on find/replace in multiple files

Open fourst4r opened this issue 5 years ago • 2 comments

I cloned a git repo and it automatically converted \n to \r\n in the process since I'm on Windows. So I used the find/replace in files functionality of vscode to replace them back and when I did it launched around 100 zig.exes and completely annihilated my CPU. I had to kill them all with taskkill /IM "zig.exe" /F.

fourst4r avatar Jul 29 '20 18:07 fourst4r

Do you have either Format on Save or Build on Save enabled? I wonder if it launched a process for each file.

Swoogan avatar Nov 08 '20 15:11 Swoogan

Yes I have Build on Save enabled.

fourst4r avatar Nov 08 '20 16:11 fourst4r