Skip to content

Commit

Permalink
Merge pull request #10108 from weirdan/lsp-cleanup-test-command
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Aug 13, 2023
2 parents 626444d + dbd94ef commit 84bbf2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions src/Psalm/Internal/LanguageServer/LanguageServer.php
Expand Up @@ -23,7 +23,6 @@
use LanguageServerProtocol\CompletionOptions;
use LanguageServerProtocol\Diagnostic;
use LanguageServerProtocol\DiagnosticSeverity;
use LanguageServerProtocol\ExecuteCommandOptions;
use LanguageServerProtocol\InitializeResult;
use LanguageServerProtocol\InitializeResultServerInfo;
use LanguageServerProtocol\LogMessage;
Expand Down Expand Up @@ -446,9 +445,6 @@ function () use ($workDoneToken) {

$serverCapabilities = new ServerCapabilities();

//The server provides execute command support.
$serverCapabilities->executeCommandProvider = new ExecuteCommandOptions(['test']);

$textDocumentSyncOptions = new TextDocumentSyncOptions();

//Open and close notifications are sent to the server.
Expand Down
19 changes: 0 additions & 19 deletions src/Psalm/Internal/LanguageServer/Server/TextDocument.php
Expand Up @@ -455,25 +455,6 @@ public function codeAction(TextDocumentIdentifier $textDocument, CodeActionConte
],
]),
);

/*
$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)) {
Expand Down

0 comments on commit 84bbf2b

Please sign in to comment.