debt - remove unsupported max_old_space_size option (#180183)

This commit is contained in:
Benjamin Pasero
2023-04-17 22:32:23 -07:00
committed by GitHub
parent 4e45804466
commit 6d5b85427d
21 changed files with 31 additions and 305 deletions
-9
View File
@@ -11,7 +11,6 @@ import { Event } from 'vs/base/common/event';
import { isAbsolute, resolve, join, dirname } from 'vs/base/common/path';
import { IProcessEnvironment, isMacintosh, isWindows } from 'vs/base/common/platform';
import { randomPort } from 'vs/base/common/ports';
import { isString } from 'vs/base/common/types';
import { whenDeleted, writeFileSync } from 'vs/base/node/pfs';
import { findFreePort } from 'vs/base/node/ports';
import { watchFileContents } from 'vs/platform/files/node/watcher/nodejs/nodejsWatcherLib';
@@ -390,14 +389,6 @@ export async function main(argv: string[]): Promise<any> {
});
}
const jsFlags = args['js-flags'];
if (isString(jsFlags)) {
const match = /max_old_space_size=(\d+)/g.exec(jsFlags);
if (match && !args['max-memory']) {
addArg(argv, `--max-memory=${match[1]}`);
}
}
const options: SpawnOptions = {
detached: true,
env