-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Prevent opening files that are too large #4731
Comments
Related: #1470? |
no, #1470 is about replicating document buffers on the backend for quick access from LS and VS Code extensions for example |
@akosyakov Thought I would look at this as it has been around for a while. I can't find a way of injecting a piece of text (to replicate the vscode way of working) into the open function here: Any ideas? |
I don't think that it is so easy. We probably need a new open handler which has a priority greater than For Is it clear? |
Clear... whether I can do it or not remains to be seen... I will give it a go! |
I have managed to create the OpenHandler but I have no idea on how to create the Widget and get it called... is there any documentation on this at all? |
@sauny Please have a look for examlpe at |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Description
when i click a tar.gz file on explorer
theia is crash
i think we need add warn when open large file
Reproduction Steps
create a large file
click on explorer
OS and Theia version:
latest next version
Diagnostics:
The text was updated successfully, but these errors were encountered: