vscode-languageserver-protocol
Advanced tools
Comparing version 3.17.0-next.7 to 3.17.0-next.8
@@ -1,2 +0,2 @@ | ||
import { Message, NotificationMessage, CancellationToken, RequestHandler0, RequestHandler, GenericRequestHandler, NotificationHandler0, NotificationHandler, GenericNotificationHandler, ProgressType, Trace, Tracer, TraceOptions, Disposable, Event, MessageReader, MessageWriter, Logger, ConnectionStrategy, ConnectionOptions, RequestType0, RequestType, NotificationType0, NotificationType } from 'vscode-jsonrpc'; | ||
import { Message, NotificationMessage, CancellationToken, RequestHandler0, RequestHandler, GenericRequestHandler, NotificationHandler0, NotificationHandler, GenericNotificationHandler, ProgressType, Trace, Tracer, TraceOptions, Disposable, Event, MessageReader, MessageWriter, Logger, ConnectionStrategy, ConnectionOptions, RequestType0, RequestType, NotificationType0, NotificationType, MessageSignature } from 'vscode-jsonrpc'; | ||
import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages'; | ||
@@ -26,11 +26,11 @@ export interface ProtocolConnection { | ||
* | ||
* @param method the request's method name. | ||
* @param method the message signature or the method name. | ||
* @param token An optional cancellation token. | ||
* @returns A promise resolving to the request's result. | ||
*/ | ||
sendRequest<R>(method: string, token?: CancellationToken): Promise<R>; | ||
sendRequest<R>(method: MessageSignature | string, token?: CancellationToken): Promise<R>; | ||
/** | ||
* Sends a request and returns a promise resolving to the result of the request. | ||
* | ||
* @param method the request's method name. | ||
* @param method the message signature or the method name. | ||
* @param params The request's parameter. | ||
@@ -40,3 +40,3 @@ * @param token An optional cancellation token. | ||
*/ | ||
sendRequest<R>(method: string, param: any, token?: CancellationToken): Promise<R>; | ||
sendRequest<R>(method: MessageSignature | string, param: any, token?: CancellationToken): Promise<R>; | ||
/** | ||
@@ -61,6 +61,6 @@ * Installs a request handler. | ||
* | ||
* @param methods The method name to install the handler for. | ||
* @param methods the message signature or the method name to install a handler for. | ||
* @param handler The actual handler. | ||
*/ | ||
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable; | ||
onRequest<R, E>(method: MessageSignature | string, handler: GenericRequestHandler<R, E>): Disposable; | ||
/** | ||
@@ -84,12 +84,12 @@ * Sends a notification. | ||
* | ||
* @param method the notification's method name. | ||
* @param method the notification's method signature or the method name. | ||
*/ | ||
sendNotification(method: string): Promise<void>; | ||
sendNotification(method: MessageSignature | string): Promise<void>; | ||
/** | ||
* Sends a notification. | ||
* | ||
* @param method the notification's method name. | ||
* @param method the notification's method signature or the method name. | ||
* @param params the notification's parameters. | ||
*/ | ||
sendNotification(method: string, params: any): Promise<void>; | ||
sendNotification(method: MessageSignature | string, params: any): Promise<void>; | ||
/** | ||
@@ -114,6 +114,6 @@ * Installs a notification handler. | ||
* | ||
* @param methods The method name to install the handler for. | ||
* @param methods The message signature or the method name to install the handler for. | ||
* @param handler The actual handler. | ||
*/ | ||
onNotification(method: string, handler: GenericNotificationHandler): Disposable; | ||
onNotification(method: MessageSignature | string, handler: GenericNotificationHandler): Disposable; | ||
/** | ||
@@ -147,3 +147,3 @@ * Installs a progress handler for a given token. | ||
/** | ||
* An event emiiter firing when the connection receives a notification that is not | ||
* An event emitter firing when the connection receives a notification that is not | ||
* handled. | ||
@@ -150,0 +150,0 @@ */ |
{ | ||
"name": "vscode-languageserver-protocol", | ||
"description": "VSCode Language Server Protocol implementation", | ||
"version": "3.17.0-next.7", | ||
"version": "3.17.0-next.8", | ||
"author": "Microsoft Corporation", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"vscode-jsonrpc": "8.0.0-next.1", | ||
"vscode-jsonrpc": "8.0.0-next.2", | ||
"vscode-languageserver-types": "3.17.0-next.3" | ||
@@ -32,3 +32,3 @@ }, | ||
"clean": "node ../node_modules/rimraf/bin.js lib && node ../node_modules/rimraf/bin.js dist", | ||
"lint": "node ../node_modules/eslint/bin/eslint.js ./src/**/*.ts", | ||
"lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src", | ||
"test": "npm run test:node && npm run test:browser", | ||
@@ -35,0 +35,0 @@ "test:node": "node ../node_modules/mocha/bin/_mocha", |
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
259424
+ Addedvscode-jsonrpc@8.0.0-next.2(transitive)
- Removedvscode-jsonrpc@8.0.0-next.1(transitive)
Updatedvscode-jsonrpc@8.0.0-next.2