format code

pull/102/head
jens1o 2017-04-10 14:33:47 +02:00
parent 021c3655c5
commit e49707fd1b
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@
"type": "string", "type": "string",
"default": "-1", "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).", "description": "The memory limit of the php language server. [Number][K|M|G]. Use '-1' to allow unlimited use of the RAM(default).",
"schema": "!/^\d+(?:K|M|G|)$/" "pattern": "^\\d+(?:K|M|G|)$"
} }
} }
} }

View File

@ -65,7 +65,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
function spawnServer(...args: string[]): ChildProcess { function spawnServer(...args: string[]): ChildProcess {
// The server is implemented in PHP // The server is implemented in PHP
args.unshift(context.asAbsolutePath(path.join('vendor', 'felixfbecker', 'language-server', 'bin', 'php-language-server.php'))); args.unshift(context.asAbsolutePath(path.join('vendor', 'felixfbecker', 'language-server', 'bin', 'php-language-server.php')));
args.push(' --memory-limit=' + memoryLimit) args.push('--memory-limit=' + memoryLimit)
const childProcess = spawn(executablePath, args); const childProcess = spawn(executablePath, args);
childProcess.stderr.on('data', (chunk: Buffer) => { childProcess.stderr.on('data', (chunk: Buffer) => {
console.error(chunk + ''); console.error(chunk + '');