-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Git diff of too large image file: Unsupported text encoding and NaNTB #50103
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
Comments
/cc @mjbvz for the status bar bug |
Actually, giving it to you @mjbvz because it seems to me that also the left-hand binary view should read this instead: |
I pushed a fix to not draw |
I've confirmed that we no longer show the NaN TB in the status bar. We still do not show anything helpful on the left side of the editor for large image however. This root cause is that for the left side resource, VS Code uses a uri such as vscode/extensions/git/src/commands.ts Line 350 in 1cd6bd6
@joaomoreno Do you have ideas on if or how we could handle this case better? Should we use the |
Would this be solved by using an FS provider for git resources and moving away from the cc @bpasero |
Since the 1MB is a well known limitation of the current approach, I'm removing myself from this October issue. FS Provider might be a solution, but definitely not for October. |
@joaomoreno my understanding is that this data is flowing around via data-URIs, no? I think, yes, a file system provider for Git is ideal for all cases 👍 |
Yes, but that's because Git still uses the once-upon-a-time-was-the-only-thing-available TextDocumentContentProvider... if we were to switch to the FS Provider, couldn't we send binary files as well? |
@mjbvz should comment on that, since he rewrote the binary viewer as extension, I am not sure how binary data is shown. |
@joaomoreno Yes, if git returned a uri that points to a custom file system provider, it could provide binary data as well |
Ok, thanks. Closing this as a duplicate of #55110 then |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: