Skip to content

Commit

Permalink
Tweak file limits based on experiments (#30180)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Jul 7, 2017
1 parent ce396fd commit c5bf26a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vs/platform/files/common/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,11 @@ export enum FileOperationResult {
FILE_INVALID_PATH
}

export const MAX_FILE_SIZE = 50 * 1024 * 1024;
// See https://github.com/Microsoft/vscode/issues/30180
const WIN32_MAX_FILE_SIZE = 300 * 1024 * 1024; // 300 MB
const GENERAL_MAX_FILE_SIZE = 16 * 1024 * 1024 * 1024; // 16 GB

export const MAX_FILE_SIZE = (process.arch === 'ia32' ? WIN32_MAX_FILE_SIZE : GENERAL_MAX_FILE_SIZE);

export const AutoSaveConfiguration = {
OFF: 'off',
Expand Down

0 comments on commit c5bf26a

Please sign in to comment.