]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Merge branch 'main' into customrequesthandlers
authorYegappan Lakshmanan <4298407+yegappan@users.noreply.github.com>
Sun, 21 May 2023 18:59:32 +0000 (11:59 -0700)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 18:59:32 +0000 (11:59 -0700)
1  2 
README.md
autoload/lsp/handlers.vim
autoload/lsp/lspserver.vim
doc/lsp.txt

diff --cc README.md
Simple merge
index cc12626299bbd7b11c755fe6b6fc1114231087fa,d369ebc308a51478245e4b0e7f510cf7394722b3..b79f2ef0a2603df1a410cce44d94f92768c83b54
@@@ -191,14 -195,22 +191,22 @@@ export def ProcessRequest(lspserver: di
        'window/workDoneProgress/create': ProcessWorkDoneProgressCreate,
        'client/registerCapability': ProcessClientRegisterCap,
        'client/unregisterCapability': ProcessClientUnregisterCap,
 -      'workspace/configuration': ProcessWorkspaceConfiguration,
 -      'workspace/codeLens/refresh': ProcessUnsupportedReq,
 -      'workspace/semanticTokens/refresh': ProcessUnsupportedReq
 +      'workspace/configuration': ProcessWorkspaceConfiguration
      }
  
+   # Explicitly ignored requests
+   var lspIgnoredRequestHandlers: list<string> =
+     [
+       # Eclipse java language server sends the 'workspace/executeClientCommand' 
+       # request (to reload bundles) which is not in the LSP specification.
+       'workspace/executeClientCommand',
+     ]
    if lspRequestHandlers->has_key(request.method)
      lspRequestHandlers[request.method](lspserver, request)
-   else
 +  elseif lspserver.customRequestHandlers->has_key(request.method)
 +    lspserver.customRequestHandlers[request.method](lspserver, request)
+   elseif lspIgnoredRequestHandlers->index(request.method) == -1
      util.ErrMsg($'Unsupported request message received from the LSP server ({lspserver.path}), message = {request->string()}')
    endif
  enddef
Simple merge
diff --cc doc/lsp.txt
Simple merge