-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Implement large file confirmation for file working copy editors #172129
Comments
Yeah it will only apply to text editors, I will update the test plan item and maybe the setting should change to |
same is true for notebooks (and I guess for any custom editor) |
Yeah, it is currently only implemented for text editors, though the underlying logic for file size limits is available to anyone from the file service via the vscode/src/vs/platform/files/common/files.ts Line 321 in 569f3d1
We can probably implement it for notebooks, by adding the limit here:
But for custom editors that are not text based, the loading of data is not under our control... |
+1 for doing this for editors that we ship out of the box /cc @roblourens @rebornix |
I can see to add this for notebooks, but custom editors that do file loading on their own will probably not be so easy to get working with that setting. |
I was expecting this to auto opt-in feature for working copy but it seems it requires us to handle it in editor input or editor level? |
I have not started the investigation yet, but yeah it might be on the editor level and not generic. Update: this needs to be implemented in editor inputs and editors currently if we want to avoid throwing the error when any working copy is resolved. My intention was to limit this new error to editor resolving only because there we have a UI for the user to resolve it. If we were to have this size limit in a generic way, anyone resolving a model would potentially have to deal with this error. For text files, the limit is installed here: vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.ts Lines 330 to 338 in 43db9d2
And the editor handling part is here: vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.ts Lines 187 to 197 in 43db9d2
|
Testing #171743
The text was updated successfully, but these errors were encountered: