You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opening large binary files reads full contents #138805
Does this issue occur when all extensions are disabled?: Yes
Version: 1.63.0 (Universal)
OS: Darwin x64 20.6.0
Steps to Reproduce:
open a folder contains some very large zip files
select the zip files
edit pane become unresponsive
after a long time, edit pane display message: The file is not displayed in the editor because it is either binary or uses an unsupported text encoding
I don't want to open zip file in vscode, but there are some time I select the file by mistake. and then vscode freeze for a long time.
This happens both in vscode and vscode remote ssh.
I need a file extension blacklist, or make the binary detect fast.
Related to #132771.
When I've made the same mistakes, I don't usually felt that encoding detection is so slow.
Does it work differently in macOS from in Windows or GNU/Linux?
A fix for this will be available in our insiders build on Monday, would be good to verify then. I also tried to tackle #132771 so that the reading of large files really stops on the remote end as well.
Activity
j824h commentedon Dec 10, 2021
Related to #132771.
When I've made the same mistakes, I don't usually felt that encoding detection is so slow.
Does it work differently in macOS from in Windows or GNU/Linux?
bpasero commentedon Dec 10, 2021
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/
bpasero commentedon Dec 10, 2021
Nevermind, great catch. We indeed seem to read the entire file and try to decode it even though we could bail out earlier given we only accept text.
This does not seem like a regression though, I can reproduce slowness also in previous stable.
kaala commentedon Dec 10, 2021
The problem also exist in insider build

You are correct about decode
[-]open binary file takes long time[/-][+]Opening large binary files reads full contents[/+]files - stop processing binary files if only text accepted (#138805)
bpasero commentedon Dec 10, 2021
A fix for this will be available in our insiders build on Monday, would be good to verify then. I also tried to tackle #132771 so that the reading of large files really stops on the remote end as well.
You can give our preview releases a try from: https://code.visualstudio.com/insiders/