mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
Fix #42839. avoid ui freeze when file is larger than heap size limit.
This commit is contained in:
@@ -306,6 +306,13 @@ export async function main(argv: string[]): TPromise<any> {
|
||||
});
|
||||
}
|
||||
|
||||
if (args['js-flags']) {
|
||||
const match = /max_old_space_size=(\d+)/g.exec(args['js-flags']);
|
||||
if (match && !args['max_old_space_size']) {
|
||||
argv.push(`--max_old_space_size=${match[1]}`);
|
||||
}
|
||||
}
|
||||
|
||||
const options = {
|
||||
detached: true,
|
||||
env
|
||||
|
||||
Reference in New Issue
Block a user