change setting field to php

pull/102/head
jens1o 2017-04-10 14:14:20 +02:00
parent 14a9171a4d
commit 14e6a9f19a
2 changed files with 2 additions and 5 deletions

View File

@ -57,9 +57,8 @@
},
"contributes": {
"configuration": {
"title": "PHP-Intellisense",
"properties": {
"phpintellisense.memoryLimit": {
"php.memoryLimit": {
"type": "string",
"default": "-1",
"description": "The memory limit of the php language server. [Number][K|M|G]. Use '-1' to allow unlimited use of the RAM(default)."

View File

@ -12,9 +12,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
const conf = vscode.workspace.getConfiguration('php');
const executablePath = conf.get<string>('executablePath') || 'php';
const specificSettings = vscode.workspace.getConfiguration('phpintellisense');
const memoryLimit = specificSettings.get<string>('memoryLimit') || '-1';
const memoryLimit = conf.get<string>('memoryLimit') || '-1';
if (memoryLimit !== '-1' && !memoryLimit.match('~^(\d+)(K|M|G|)$~')) {
const selected = await vscode.window.showErrorMessage(