Skip to content

Commit 79edb58

Browse files
committed
fix(memoryLimit): use default memory limit of 4G - 1
closes #240
1 parent 339b8a3 commit 79edb58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"properties": {
9595
"php.memoryLimit": {
9696
"type": "string",
97-
"default": "4G",
97+
"default": "4095M",
9898
"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).",
9999
"pattern": "^\\d+[KMG]?$"
100100
},

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
1212
const conf = vscode.workspace.getConfiguration('php');
1313
const executablePath = conf.get<string>('executablePath') || 'php';
1414

15-
const memoryLimit = conf.get<string>('memoryLimit') || '4G';
15+
const memoryLimit = conf.get<string>('memoryLimit') || '4095M';
1616

1717
if (memoryLimit !== '-1' && !/^\d+[KMG]?$/.exec(memoryLimit)) {
1818
const selected = await vscode.window.showErrorMessage(

0 commit comments

Comments
 (0)