1405
const handler = this._requestHandlers.hasOwnProperty(method) ? this._requestHandlers[method as RequestMethod] : undefined;
1406
if (handler) {
1407
>
(handler as (client: IConnectedClient, params: unknown) => Promise<unknown>)(client, params).then(result => {
protocolServerHandler.ts
1408
this._logService.trace(`[ProtocolServer] Request '${method}' id=${id} succeeded`);
1409
client.transport.send(jsonRpcSuccess(id, result ?? null));
1411
if (shouldLogFailedRequest(method, params, err)) {
1412
this._logService.error(`[ProtocolServer] Request '${method}' failed`, err);
1413
}
1414
client.transport.send(jsonRpcErrorFrom(id, err));
1416
>
return;
1417
>
}
1418
1419
// VS Code extension methods (not in the typed protocol maps yet)