You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_WindowMiddleware.showDocument request from server to client is missing a "token" parameter. Here is the definition. Observe that the "next" parameter is a function which takes (params: ShowDocumentParams, token: CancellationToken). However, showDocument itself doesn't take a token parameter. Therefore we have nothing to pass when we invoke next(param, ???needToken??).
By comparison, let's look at ConfigurationMiddleware.configuration request from server to client, where the signature of configuration does correctly take a token and is therefore able to pass it to the next function.
I also think the return type of showDocument is wrong. It should allow the possibility to return error, since the next function is able to return error.
_WindowMiddleware.showDocument request from server to client is missing a "token" parameter. Here is the definition. Observe that the "next" parameter is a function which takes
(params: ShowDocumentParams, token: CancellationToken)
. However,showDocument
itself doesn't take a token parameter. Therefore we have nothing to pass when we invokenext(param, ???needToken??)
.vscode-languageserver-node/client/src/common/client.ts
Lines 294 to 296 in bafd287
vscode-languageserver-node/protocol/src/common/protocol.showDocument.ts
Lines 78 to 84 in bafd287
vscode-languageserver-node/jsonrpc/src/common/connection.ts
Lines 89 to 91 in bafd287
By comparison, let's look at ConfigurationMiddleware.configuration request from server to client, where the signature of
configuration
does correctly take atoken
and is therefore able to pass it to thenext
function.vscode-languageserver-node/client/src/common/configuration.ts
Lines 17 to 19 in bafd287
vscode-languageserver-node/protocol/src/common/protocol.configuration.ts
Lines 22 to 28 in bafd287
The text was updated successfully, but these errors were encountered: