1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +01:00
This commit is contained in:
Andrew Nagy 2023-03-02 19:02:56 +00:00
parent 221eecf2e3
commit fc4c98050e
4 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,6 @@
namespace Psalm\Internal\Cli;
use LanguageServerProtocol\MessageType;
use Psalm\Config;
use Psalm\Internal\CliUtils;
use Psalm\Internal\ErrorHandler;
use Psalm\Internal\Fork\PsalmRestarter;
@ -379,6 +378,6 @@ final class LanguageServer
$clientConfiguration->TCPServerAddress = $options['tcp'] ?? null;
$clientConfiguration->TCPServerMode = isset($options['tcp-server']);
LanguageServerLanguageServer::run($config, $clientConfiguration, $current_dir);
LanguageServerLanguageServer::run($config, $clientConfiguration;
}
}

View File

@ -240,7 +240,7 @@ class LanguageServer extends Dispatcher
/**
* 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();

View File

@ -8,6 +8,8 @@ use Psalm\Internal\Provider\FileReferenceCacheProvider as InternalFileReferenceC
/**
* Used to determine which files reference other files, necessary for using the --diff
* option from the command line.
*
* @internal
*/
class FileReferenceCacheProvider extends InternalFileReferenceCacheProvider
{

View File

@ -4,6 +4,9 @@ namespace Psalm\Internal\LanguageServer\Provider;
use Psalm\Internal\Provider\ProjectCacheProvider as PsalmProjectCacheProvider;
/**
* @internal
*/
class ProjectCacheProvider extends PsalmProjectCacheProvider
{
private int $last_run = 0;