mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
cleanup
This commit is contained in:
parent
221eecf2e3
commit
fc4c98050e
@ -3,7 +3,6 @@
|
|||||||
namespace Psalm\Internal\Cli;
|
namespace Psalm\Internal\Cli;
|
||||||
|
|
||||||
use LanguageServerProtocol\MessageType;
|
use LanguageServerProtocol\MessageType;
|
||||||
use Psalm\Config;
|
|
||||||
use Psalm\Internal\CliUtils;
|
use Psalm\Internal\CliUtils;
|
||||||
use Psalm\Internal\ErrorHandler;
|
use Psalm\Internal\ErrorHandler;
|
||||||
use Psalm\Internal\Fork\PsalmRestarter;
|
use Psalm\Internal\Fork\PsalmRestarter;
|
||||||
@ -379,6 +378,6 @@ final class LanguageServer
|
|||||||
$clientConfiguration->TCPServerAddress = $options['tcp'] ?? null;
|
$clientConfiguration->TCPServerAddress = $options['tcp'] ?? null;
|
||||||
$clientConfiguration->TCPServerMode = isset($options['tcp-server']);
|
$clientConfiguration->TCPServerMode = isset($options['tcp-server']);
|
||||||
|
|
||||||
LanguageServerLanguageServer::run($config, $clientConfiguration, $current_dir);
|
LanguageServerLanguageServer::run($config, $clientConfiguration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -240,7 +240,7 @@ class LanguageServer extends Dispatcher
|
|||||||
/**
|
/**
|
||||||
* Start the Server
|
* Start the Server
|
||||||
*/
|
*/
|
||||||
public static function run(Config $config, ClientConfiguration $clientConfiguration, string $base_dir): void
|
public static function run(Config $config, ClientConfiguration $clientConfiguration): void
|
||||||
{
|
{
|
||||||
$progress = new Progress();
|
$progress = new Progress();
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@ use Psalm\Internal\Provider\FileReferenceCacheProvider as InternalFileReferenceC
|
|||||||
/**
|
/**
|
||||||
* Used to determine which files reference other files, necessary for using the --diff
|
* Used to determine which files reference other files, necessary for using the --diff
|
||||||
* option from the command line.
|
* option from the command line.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
class FileReferenceCacheProvider extends InternalFileReferenceCacheProvider
|
class FileReferenceCacheProvider extends InternalFileReferenceCacheProvider
|
||||||
{
|
{
|
||||||
|
@ -4,6 +4,9 @@ namespace Psalm\Internal\LanguageServer\Provider;
|
|||||||
|
|
||||||
use Psalm\Internal\Provider\ProjectCacheProvider as PsalmProjectCacheProvider;
|
use Psalm\Internal\Provider\ProjectCacheProvider as PsalmProjectCacheProvider;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
class ProjectCacheProvider extends PsalmProjectCacheProvider
|
class ProjectCacheProvider extends PsalmProjectCacheProvider
|
||||||
{
|
{
|
||||||
private int $last_run = 0;
|
private int $last_run = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user