vscode-jsonrpc
Advanced tools
Comparing version 9.0.0-next.3 to 9.0.0-next.4
@@ -1087,4 +1087,4 @@ "use strict"; | ||
try { | ||
responsePromises.set(id, responsePromise); | ||
await messageWriter.write(requestMessage); | ||
responsePromises.set(id, responsePromise); | ||
if (tokenWasCancelled) { | ||
@@ -1095,5 +1095,7 @@ sendCancellation(connection, id); | ||
catch (error) { | ||
// Writing the message failed. So we need to delete it from the response promises and | ||
// reject it. | ||
responsePromises.delete(id); | ||
responsePromise.reject(new messages_1.ResponseError(messages_1.ErrorCodes.MessageWriteError, error.message ? error.message : 'Unknown reason')); | ||
logger.error(`Sending request failed.`); | ||
// Writing the message failed. So we need to reject the promise. | ||
responsePromise.reject(new messages_1.ResponseError(messages_1.ErrorCodes.MessageWriteError, error.message ? error.message : 'Unknown reason')); | ||
throw error; | ||
@@ -1100,0 +1102,0 @@ } |
{ | ||
"name": "vscode-jsonrpc", | ||
"description": "A json rpc implementation over streams", | ||
"version": "9.0.0-next.3", | ||
"version": "9.0.0-next.4", | ||
"author": "Microsoft Corporation", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209423
4988