mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Add --tcp-server for creating language servers in tcp server mode
This commit is contained in:
parent
39310573d1
commit
b982090e10
@ -26,6 +26,7 @@ $valid_long_options = [
|
||||
'use-ini-defaults',
|
||||
'version',
|
||||
'tcp:',
|
||||
'tcp-server',
|
||||
'disable-on-change::'
|
||||
];
|
||||
|
||||
@ -118,6 +119,9 @@ Options:
|
||||
--tcp=url
|
||||
Use TCP mode (by default Psalm uses STDIO)
|
||||
|
||||
--tcp-server
|
||||
Use TCP in server mode (default is client)
|
||||
|
||||
--disable-on-change[=line-number-threshold]
|
||||
If added, the language server will not respond to onChange events.
|
||||
You can also specify a line count over which Psalm will not run on-change events.
|
||||
@ -234,4 +238,4 @@ if ($find_dead_code) {
|
||||
$project_analyzer->getCodebase()->reportUnusedCode();
|
||||
}
|
||||
|
||||
$project_analyzer->server($options['tcp'] ?? null);
|
||||
$project_analyzer->server($options['tcp'] ?? null, isset($options['tcp-server']) ? true : false);
|
||||
|
Loading…
Reference in New Issue
Block a user