update default memoryLimit
parent
dc31f24658
commit
e0b558976e
|
@ -12,7 +12,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
|
||||||
const conf = vscode.workspace.getConfiguration('php');
|
const conf = vscode.workspace.getConfiguration('php');
|
||||||
const executablePath = conf.get<string>('executablePath') || 'php';
|
const executablePath = conf.get<string>('executablePath') || 'php';
|
||||||
|
|
||||||
const memoryLimit = conf.get<string>('memoryLimit') || '-1';
|
const memoryLimit = conf.get<string>('memoryLimit') || '4G';
|
||||||
|
|
||||||
if (memoryLimit !== '-1' && !/^\d+[KMG]?$/.exec(memoryLimit)) {
|
if (memoryLimit !== '-1' && !/^\d+[KMG]?$/.exec(memoryLimit)) {
|
||||||
const selected = await vscode.window.showErrorMessage(
|
const selected = await vscode.window.showErrorMessage(
|
||||||
|
|
Loading…
Reference in New Issue