Update extension.ts
If you use 32bit version of PHP, the 4G settings made this: "Server server crashed 5 times in the last 3 minutes. The server will not be restarted." So, I decreased 4G (4096MB) to only 4095MB and everything works fine.pull/241/head
parent
339b8a3b89
commit
49d98f1ed2
|
@ -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') || '4G';
|
const memoryLimit = conf.get<string>('memoryLimit') || '4095M';
|
||||||
|
|
||||||
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