From 79edb58199f9d3821e7584c4e85e7f5d54d825a8 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Tue, 2 Jan 2018 10:29:34 -0800 Subject: [PATCH] fix(memoryLimit): use default memory limit of 4G - 1 closes #240 --- package.json | 2 +- src/extension.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 431210e..6eb1cfa 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "properties": { "php.memoryLimit": { "type": "string", - "default": "4G", + "default": "4095M", "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]?$" }, diff --git a/src/extension.ts b/src/extension.ts index 9cc2ceb..0e1e01e 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') || '4G'; + const memoryLimit = conf.get('memoryLimit') || '4095M'; if (memoryLimit !== '-1' && !/^\d+[KMG]?$/.exec(memoryLimit)) { const selected = await vscode.window.showErrorMessage(