mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Merge branch '5.x' into fix-10090
This commit is contained in:
commit
4ca9dccb1d
@ -23,7 +23,6 @@ use LanguageServerProtocol\CodeDescription;
|
|||||||
use LanguageServerProtocol\CompletionOptions;
|
use LanguageServerProtocol\CompletionOptions;
|
||||||
use LanguageServerProtocol\Diagnostic;
|
use LanguageServerProtocol\Diagnostic;
|
||||||
use LanguageServerProtocol\DiagnosticSeverity;
|
use LanguageServerProtocol\DiagnosticSeverity;
|
||||||
use LanguageServerProtocol\ExecuteCommandOptions;
|
|
||||||
use LanguageServerProtocol\InitializeResult;
|
use LanguageServerProtocol\InitializeResult;
|
||||||
use LanguageServerProtocol\InitializeResultServerInfo;
|
use LanguageServerProtocol\InitializeResultServerInfo;
|
||||||
use LanguageServerProtocol\LogMessage;
|
use LanguageServerProtocol\LogMessage;
|
||||||
@ -446,9 +445,6 @@ class LanguageServer extends Dispatcher
|
|||||||
|
|
||||||
$serverCapabilities = new ServerCapabilities();
|
$serverCapabilities = new ServerCapabilities();
|
||||||
|
|
||||||
//The server provides execute command support.
|
|
||||||
$serverCapabilities->executeCommandProvider = new ExecuteCommandOptions(['test']);
|
|
||||||
|
|
||||||
$textDocumentSyncOptions = new TextDocumentSyncOptions();
|
$textDocumentSyncOptions = new TextDocumentSyncOptions();
|
||||||
|
|
||||||
//Open and close notifications are sent to the server.
|
//Open and close notifications are sent to the server.
|
||||||
|
@ -455,25 +455,6 @@ class TextDocument
|
|||||||
],
|
],
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
|
||||||
$fixers["fixAll.{$diagnostic->data->type}"] = new CodeAction(
|
|
||||||
"FixAll {$diagnostic->data->type} for this file",
|
|
||||||
CodeActionKind::QUICK_FIX,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
new Command(
|
|
||||||
"Fix All",
|
|
||||||
"psalm.fixall",
|
|
||||||
[
|
|
||||||
'uri' => $textDocument->uri,
|
|
||||||
'type' => $diagnostic->data->type
|
|
||||||
]
|
|
||||||
)
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($fixers)) {
|
if (empty($fixers)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user