From dbd94ef85d6aec6f7bf227262e87cb833b36f2f7 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 13 Aug 2023 02:42:19 +0200 Subject: [PATCH] Cleanup `test` command and `fixAll` action None were working. --- .../LanguageServer/LanguageServer.php | 4 ---- .../LanguageServer/Server/TextDocument.php | 19 ------------------- 2 files changed, 23 deletions(-) diff --git a/src/Psalm/Internal/LanguageServer/LanguageServer.php b/src/Psalm/Internal/LanguageServer/LanguageServer.php index cc3587536..ed6b879dc 100644 --- a/src/Psalm/Internal/LanguageServer/LanguageServer.php +++ b/src/Psalm/Internal/LanguageServer/LanguageServer.php @@ -23,7 +23,6 @@ use LanguageServerProtocol\CodeDescription; use LanguageServerProtocol\CompletionOptions; use LanguageServerProtocol\Diagnostic; use LanguageServerProtocol\DiagnosticSeverity; -use LanguageServerProtocol\ExecuteCommandOptions; use LanguageServerProtocol\InitializeResult; use LanguageServerProtocol\InitializeResultServerInfo; use LanguageServerProtocol\LogMessage; @@ -446,9 +445,6 @@ class LanguageServer extends Dispatcher $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. diff --git a/src/Psalm/Internal/LanguageServer/Server/TextDocument.php b/src/Psalm/Internal/LanguageServer/Server/TextDocument.php index 508af5aeb..cb359d5b9 100644 --- a/src/Psalm/Internal/LanguageServer/Server/TextDocument.php +++ b/src/Psalm/Internal/LanguageServer/Server/TextDocument.php @@ -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)) {