diff --git a/package.json b/package.json index 60df377..431210e 100644 --- a/package.json +++ b/package.json @@ -94,8 +94,8 @@ "properties": { "php.memoryLimit": { "type": "string", - "default": "-1", - "description": "The memory limit of the php language server. [Number][K|M|G]. Use '-1' to allow unlimited use of the RAM(default).", + "default": "4G", + "description": "The memory limit of the php language server. [Number][K|M|G]. Use '-1' to allow unlimited use of the RAM (default is 4G).", "pattern": "^\\d+[KMG]?$" }, "php.executablePath": { diff --git a/src/extension.ts b/src/extension.ts index ae7a779..9cc2ceb 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -12,7 +12,7 @@ export async function activate(context: vscode.ExtensionContext): Promise const conf = vscode.workspace.getConfiguration('php'); const executablePath = conf.get('executablePath') || 'php'; - const memoryLimit = conf.get('memoryLimit') || '-1'; + const memoryLimit = conf.get('memoryLimit') || '4G'; if (memoryLimit !== '-1' && !/^\d+[KMG]?$/.exec(memoryLimit)) { const selected = await vscode.window.showErrorMessage(