vscode-languageserver
Advanced tools
Comparing version 7.1.0-next.5 to 8.0.0-next.1
@@ -247,3 +247,5 @@ "use strict"; | ||
if (this._rawConnection) { | ||
this._rawConnection.sendNotification(vscode_languageserver_protocol_1.LogMessageNotification.type, { type, message }); | ||
this._rawConnection.sendNotification(vscode_languageserver_protocol_1.LogMessageNotification.type, { type, message }).catch(() => { | ||
vscode_languageserver_protocol_1.RAL().console.error(`Sending log message failed`); | ||
}); | ||
} | ||
@@ -349,3 +351,3 @@ } | ||
}; | ||
this._connection.sendRequest(vscode_languageserver_protocol_1.UnregistrationRequest.type, params).then(undefined, (_error) => { | ||
this._connection.sendRequest(vscode_languageserver_protocol_1.UnregistrationRequest.type, params).catch(() => { | ||
this._connection.console.info(`Bulk unregistration failed.`); | ||
@@ -421,3 +423,3 @@ }); | ||
return vscode_languageserver_protocol_1.Disposable.create(() => { | ||
this.unregisterSingle(id, method); | ||
this.unregisterSingle(id, method).catch(() => { this.connection.console.info(`Un-registering capability with id ${id} failed.`); }); | ||
}); | ||
@@ -433,3 +435,3 @@ }, (_error) => { | ||
}; | ||
return this.connection.sendRequest(vscode_languageserver_protocol_1.UnregistrationRequest.type, params).then(undefined, (_error) => { | ||
return this.connection.sendRequest(vscode_languageserver_protocol_1.UnregistrationRequest.type, params).catch(() => { | ||
this.connection.console.info(`Un-registering request handler for ${id} failed.`); | ||
@@ -648,6 +650,6 @@ }); | ||
if (arguments.length === 1) { | ||
connection.sendNotification(method); | ||
return connection.sendNotification(method); | ||
} | ||
else { | ||
connection.sendNotification(method, param); | ||
return connection.sendNotification(method, param); | ||
} | ||
@@ -654,0 +656,0 @@ }, |
{ | ||
"name": "vscode-languageserver", | ||
"description": "Language server implementation for node", | ||
"version": "7.1.0-next.5", | ||
"version": "8.0.0-next.1", | ||
"author": "Microsoft Corporation", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"vscode-languageserver-protocol": "3.17.0-next.6" | ||
"vscode-languageserver-protocol": "3.17.0-next.7" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
156801
3330
+ Addedvscode-jsonrpc@8.0.0-next.1(transitive)
+ Addedvscode-languageserver-protocol@3.17.0-next.7(transitive)
+ Addedvscode-languageserver-types@3.17.0-next.3(transitive)
- Removedvscode-jsonrpc@7.0.0-next.1(transitive)
- Removedvscode-languageserver-protocol@3.17.0-next.6(transitive)
- Removedvscode-languageserver-types@3.17.0-next.2(transitive)