Skip to content

Commit

Permalink
Add --tcp-server for creating language servers in tcp server mode
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Nov 20, 2018
1 parent 3931057 commit b982090
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/psalm-language-server.php
Expand Up @@ -26,6 +26,7 @@
'use-ini-defaults',
'version',
'tcp:',
'tcp-server',
'disable-on-change::'
];

Expand Down Expand Up @@ -118,6 +119,9 @@ function ($arg) use ($valid_long_options, $valid_short_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.
Expand Down Expand Up @@ -234,4 +238,4 @@ function ($arg) use ($valid_long_options, $valid_short_options) {
$project_analyzer->getCodebase()->reportUnusedCode();
}

$project_analyzer->server($options['tcp'] ?? null);
$project_analyzer->server($options['tcp'] ?? null, isset($options['tcp-server']) ? true : false);

0 comments on commit b982090

Please sign in to comment.