mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
parent
5bf4195cc7
commit
c1e5eca5b9
|
@ -171,7 +171,7 @@ export class TextFileEditor extends BaseTextEditor {
|
|||
}
|
||||
|
||||
if ((<FileOperationError>error).fileOperationResult === FileOperationResult.FILE_EXCEED_MEMORY_LIMIT) {
|
||||
let memoryLimit = this.configurationService.getValue<number>(null, 'files.maxMemoryForLargeFilesMB') | 4096;
|
||||
let memoryLimit = Math.max(2048, +this.configurationService.getValue<number>(null, 'files.maxMemoryForLargeFilesMB') || 4096);
|
||||
|
||||
return TPromise.wrapError<void>(errors.create(toErrorMessage(error), {
|
||||
actions: [
|
||||
|
|
Loading…
Reference in a new issue