提交 eaf19a75 编写于 作者: B Benjamin Pasero

workaround #1117 by reducing max file size one can open from 100 to 50 MB

上级 2f3c47c4
......@@ -198,9 +198,6 @@ export class TextFileEditor extends BaseTextEditor {
if ((<IFileOperationResult>error).fileOperationResult === FileOperationResult.FILE_TOO_LARGE) {
this.messageService.show(Severity.Info, nls.localize('fileTooLarge', "We are sorry, but the file is too large to open it inside an editor."));
// We can still open it as binary though
this.openAsBinary(input, options);
return;
}
......
......@@ -70,7 +70,7 @@ export class FileService implements files.IFileService {
public serviceId = files.IFileService;
private static FS_EVENT_DELAY = 50; // aggregate and only emit events when changes have stopped for this duration (in ms)
private static MAX_FILE_SIZE = 100 * 1024 * 1024; // do not try to load larger files than that
private static MAX_FILE_SIZE = 50 * 1024 * 1024; // do not try to load larger files than that
private static MAX_DEGREE_OF_PARALLEL_FS_OPS = 10; // degree of parallel fs calls that we accept at the same time
private basePath: string;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册