vscode-languageserver-protocol 3.17.6-next.14 → 3.17.6-next.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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';
|
|
1
|
+
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, RequestParam } from 'vscode-jsonrpc';
|
|
2
2
|
import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
3
|
export interface ProtocolConnection {
|
|
4
4
|
/**
|
|
@@ -18,8 +18,8 @@ export interface ProtocolConnection {
|
|
|
18
18
|
* @param token An optional cancellation token.
|
|
19
19
|
* @returns A promise resolving to the request's result.
|
|
20
20
|
*/
|
|
21
|
-
sendRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, params: P
|
|
22
|
-
sendRequest<P, R, E>(type: RequestType<P, R, E>, params: P
|
|
21
|
+
sendRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, params: NoInfer<RequestParam<P>>, token?: CancellationToken): Promise<R>;
|
|
22
|
+
sendRequest<P, R, E>(type: RequestType<P, R, E>, params: NoInfer<RequestParam<P>>, token?: CancellationToken): Promise<R>;
|
|
23
23
|
/**
|
|
24
24
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
25
25
|
*
|
|
@@ -44,8 +44,8 @@ export interface ProtocolConnection {
|
|
|
44
44
|
* @param handler The actual handler.
|
|
45
45
|
* @returns A disposable to remove the handler.
|
|
46
46
|
*/
|
|
47
|
-
onRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, handler: RequestHandler0<R, E
|
|
48
|
-
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E
|
|
47
|
+
onRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, handler: NoInfer<RequestHandler0<R, E>>): Disposable;
|
|
48
|
+
onRequest<R, E>(type: RequestType0<R, E>, handler: NoInfer<RequestHandler0<R, E>>): Disposable;
|
|
49
49
|
/**
|
|
50
50
|
* Installs a request handler.
|
|
51
51
|
*
|
|
@@ -53,8 +53,8 @@ export interface ProtocolConnection {
|
|
|
53
53
|
* @param handler The actual handler.
|
|
54
54
|
* @returns A disposable to remove the handler.
|
|
55
55
|
*/
|
|
56
|
-
onRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, handler: RequestHandler<P, R, E
|
|
57
|
-
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E
|
|
56
|
+
onRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, handler: NoInfer<RequestHandler<P, R, E>>): Disposable;
|
|
57
|
+
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: NoInfer<RequestHandler<P, R, E>>): Disposable;
|
|
58
58
|
/**
|
|
59
59
|
* Installs a request handler.
|
|
60
60
|
*
|
|
@@ -85,8 +85,8 @@ export interface ProtocolConnection {
|
|
|
85
85
|
* @returns A promise that resolves when the notification is written to the
|
|
86
86
|
* network layer.
|
|
87
87
|
*/
|
|
88
|
-
sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params?: P): Promise<void>;
|
|
89
|
-
sendNotification<P>(type: NotificationType<P>, params?: P): Promise<void>;
|
|
88
|
+
sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params?: NoInfer<RequestParam<P>>): Promise<void>;
|
|
89
|
+
sendNotification<P>(type: NotificationType<P>, params?: NoInfer<RequestParam<P>>): Promise<void>;
|
|
90
90
|
/**
|
|
91
91
|
* Sends a notification.
|
|
92
92
|
*
|
|
@@ -120,8 +120,8 @@ export interface ProtocolConnection {
|
|
|
120
120
|
* @param handler The actual handler.
|
|
121
121
|
* @returns A disposable to remove the handler.
|
|
122
122
|
*/
|
|
123
|
-
onNotification<P, RO>(type: ProtocolNotificationType<P, RO>, handler: NotificationHandler<P
|
|
124
|
-
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P
|
|
123
|
+
onNotification<P, RO>(type: ProtocolNotificationType<P, RO>, handler: NoInfer<NotificationHandler<P>>): Disposable;
|
|
124
|
+
onNotification<P>(type: NotificationType<P>, handler: NoInfer<NotificationHandler<P>>): Disposable;
|
|
125
125
|
/**
|
|
126
126
|
* Installs a notification handler.
|
|
127
127
|
*
|
|
@@ -137,7 +137,7 @@ export interface ProtocolConnection {
|
|
|
137
137
|
* @param handler the handler
|
|
138
138
|
* @returns A disposable to remove the handler.
|
|
139
139
|
*/
|
|
140
|
-
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P
|
|
140
|
+
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NoInfer<NotificationHandler<P>>): Disposable;
|
|
141
141
|
/**
|
|
142
142
|
* Sends progress.
|
|
143
143
|
* @param type the progress type
|
|
@@ -146,7 +146,7 @@ export interface ProtocolConnection {
|
|
|
146
146
|
* @returns A promise that resolves when the progress is written to the
|
|
147
147
|
* network layer.
|
|
148
148
|
*/
|
|
149
|
-
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Promise<void>;
|
|
149
|
+
sendProgress<P>(type: ProgressType<P>, token: string | number, value: NoInfer<RequestParam<P>>): Promise<void>;
|
|
150
150
|
/**
|
|
151
151
|
* Enables tracing mode for the connection.
|
|
152
152
|
* @returns A promise that resolves when the trace value is written to the
|
|
@@ -32,8 +32,8 @@ export interface DocumentColorParams extends WorkDoneProgressParams, PartialResu
|
|
|
32
32
|
export declare namespace DocumentColorRequest {
|
|
33
33
|
const method: 'textDocument/documentColor';
|
|
34
34
|
const messageDirection: MessageDirection;
|
|
35
|
-
const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
|
|
36
|
-
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
|
|
35
|
+
const type: ProtocolRequestType<DocumentColorParams, ColorInformation[] | null, ColorInformation[], void, DocumentColorRegistrationOptions>;
|
|
36
|
+
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[] | null, void>;
|
|
37
37
|
const capabilities: CM<"textDocument.colorProvider", "colorProvider">;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
@@ -62,7 +62,7 @@ export interface ColorPresentationParams extends WorkDoneProgressParams, Partial
|
|
|
62
62
|
export declare namespace ColorPresentationRequest {
|
|
63
63
|
const method: 'textDocument/colorPresentation';
|
|
64
64
|
const messageDirection: MessageDirection;
|
|
65
|
-
const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
|
|
66
|
-
type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>;
|
|
65
|
+
const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[] | null, ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
|
|
66
|
+
type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[] | null, void>;
|
|
67
67
|
const capabilities: CM<"textDocument.colorProvider", "colorProvider">;
|
|
68
68
|
}
|
package/lib/common/protocol.d.ts
CHANGED
|
@@ -3410,15 +3410,7 @@ export interface RenameClientCapabilities {
|
|
|
3410
3410
|
/**
|
|
3411
3411
|
* The parameters of a {@link RenameRequest}.
|
|
3412
3412
|
*/
|
|
3413
|
-
export interface RenameParams extends WorkDoneProgressParams {
|
|
3414
|
-
/**
|
|
3415
|
-
* The document to rename.
|
|
3416
|
-
*/
|
|
3417
|
-
textDocument: TextDocumentIdentifier;
|
|
3418
|
-
/**
|
|
3419
|
-
* The position at which this request was sent.
|
|
3420
|
-
*/
|
|
3421
|
-
position: Position;
|
|
3413
|
+
export interface RenameParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
3422
3414
|
/**
|
|
3423
3415
|
* The new name of the symbol. If the given name is not valid the
|
|
3424
3416
|
* request must return a {@link ResponseError} with an
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-languageserver-protocol",
|
|
3
3
|
"description": "VSCode Language Server Protocol implementation",
|
|
4
|
-
"version": "3.17.6-next.
|
|
4
|
+
"version": "3.17.6-next.16",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"vscode-jsonrpc": "9.0.0-next.
|
|
30
|
+
"vscode-jsonrpc": "9.0.0-next.11",
|
|
31
31
|
"vscode-languageserver-types": "3.17.6-next.6"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|