format code
parent
021c3655c5
commit
e49707fd1b
|
@ -62,7 +62,7 @@
|
|||
"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).",
|
||||
"schema": "!/^\d+(?:K|M|G|)$/"
|
||||
"pattern": "^\\d+(?:K|M|G|)$"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
|
|||
function spawnServer(...args: string[]): ChildProcess {
|
||||
// The server is implemented in 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);
|
||||
childProcess.stderr.on('data', (chunk: Buffer) => {
|
||||
console.error(chunk + '');
|
||||
|
|
Loading…
Reference in New Issue