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
xkrstudio 2018-01-02 13:49:19 +01:00 committed by GitHub
parent 339b8a3b89
commit 49d98f1ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(