formatting
This commit is contained in:
@@ -28,8 +28,8 @@ public class LSP4ECommandExecutor implements ClientCommandExecutor {
|
||||
@Override
|
||||
public Object executeClientCommand(String id, Object... params) throws Exception {
|
||||
List<LanguageServer> commandHandlers = LanguageServiceAccessor.getActiveLanguageServers(handlesCommand(id));
|
||||
if (commandHandlers!=null) {
|
||||
if (commandHandlers.size()==1) {
|
||||
if (commandHandlers != null) {
|
||||
if (commandHandlers.size() == 1) {
|
||||
LanguageServer handler = commandHandlers.get(0);
|
||||
return handler
|
||||
.getWorkspaceService()
|
||||
@@ -45,7 +45,7 @@ public class LSP4ECommandExecutor implements ClientCommandExecutor {
|
||||
private Predicate<ServerCapabilities> handlesCommand(String id) {
|
||||
return (serverCaps) -> {
|
||||
ExecuteCommandOptions executeCommandProvider = serverCaps.getExecuteCommandProvider();
|
||||
if (executeCommandProvider!=null) {
|
||||
if (executeCommandProvider != null) {
|
||||
return executeCommandProvider.getCommands().contains(id);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user