vscode-languageserver-protocol 3.17.3-next.3 → 3.17.3-next.4
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
|
|
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';
|
|
2
2
|
import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
3
|
export interface ProtocolConnection {
|
|
4
4
|
/**
|
|
@@ -23,20 +23,20 @@ export interface ProtocolConnection {
|
|
|
23
23
|
/**
|
|
24
24
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
25
25
|
*
|
|
26
|
-
* @param method the
|
|
26
|
+
* @param method the method name.
|
|
27
27
|
* @param token An optional cancellation token.
|
|
28
28
|
* @returns A promise resolving to the request's result.
|
|
29
29
|
*/
|
|
30
|
-
sendRequest<R>(method:
|
|
30
|
+
sendRequest<R>(method: string, token?: CancellationToken): Promise<R>;
|
|
31
31
|
/**
|
|
32
32
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
33
33
|
*
|
|
34
|
-
* @param method the
|
|
34
|
+
* @param method the method name.
|
|
35
35
|
* @param params The request's parameter.
|
|
36
36
|
* @param token An optional cancellation token.
|
|
37
37
|
* @returns A promise resolving to the request's result.
|
|
38
38
|
*/
|
|
39
|
-
sendRequest<R>(method:
|
|
39
|
+
sendRequest<R>(method: string, param: any, token?: CancellationToken): Promise<R>;
|
|
40
40
|
/**
|
|
41
41
|
* Installs a request handler.
|
|
42
42
|
*
|
|
@@ -58,11 +58,11 @@ export interface ProtocolConnection {
|
|
|
58
58
|
/**
|
|
59
59
|
* Installs a request handler.
|
|
60
60
|
*
|
|
61
|
-
* @param methods the message
|
|
61
|
+
* @param methods the message method name to install a handler for.
|
|
62
62
|
* @param handler The actual handler.
|
|
63
63
|
* @returns A disposable to remove the handler.
|
|
64
64
|
*/
|
|
65
|
-
onRequest<R, E>(method:
|
|
65
|
+
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
|
|
66
66
|
/**
|
|
67
67
|
* Returns true if the connection has a pending response.
|
|
68
68
|
* Otherwise false is returned.
|
|
@@ -90,20 +90,20 @@ export interface ProtocolConnection {
|
|
|
90
90
|
/**
|
|
91
91
|
* Sends a notification.
|
|
92
92
|
*
|
|
93
|
-
* @param method the notification's method
|
|
93
|
+
* @param method the notification's method name.
|
|
94
94
|
* @returns A promise that resolves when the notification is written to the
|
|
95
95
|
* network layer.
|
|
96
96
|
*/
|
|
97
|
-
sendNotification(method:
|
|
97
|
+
sendNotification(method: string): Promise<void>;
|
|
98
98
|
/**
|
|
99
99
|
* Sends a notification.
|
|
100
100
|
*
|
|
101
|
-
* @param method the notification's method
|
|
101
|
+
* @param method the notification's method name.
|
|
102
102
|
* @param params the notification's parameters.
|
|
103
103
|
* @returns A promise that resolves when the notification is written to the
|
|
104
104
|
* network layer.
|
|
105
105
|
*/
|
|
106
|
-
sendNotification(method:
|
|
106
|
+
sendNotification(method: string, params: any): Promise<void>;
|
|
107
107
|
/**
|
|
108
108
|
* Installs a notification handler.
|
|
109
109
|
*
|
|
@@ -125,11 +125,11 @@ export interface ProtocolConnection {
|
|
|
125
125
|
/**
|
|
126
126
|
* Installs a notification handler.
|
|
127
127
|
*
|
|
128
|
-
* @param methods The message
|
|
128
|
+
* @param methods The message method name to install the handler for.
|
|
129
129
|
* @param handler The actual handler.
|
|
130
130
|
* @returns A disposable to remove the handler.
|
|
131
131
|
*/
|
|
132
|
-
onNotification(method:
|
|
132
|
+
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
|
|
133
133
|
/**
|
|
134
134
|
* Installs a progress handler for a given token.
|
|
135
135
|
* @param type the progress type
|
|
@@ -231,6 +231,10 @@ export interface FileDelete {
|
|
|
231
231
|
* The will create files request is sent from the client to the server before files are actually
|
|
232
232
|
* created as long as the creation is triggered from within the client.
|
|
233
233
|
*
|
|
234
|
+
* The request can return a `WorkspaceEdit` which will be applied to workspace before the
|
|
235
|
+
* files are created. Hence the `WorkspaceEdit` can not manipulate the content of the file
|
|
236
|
+
* to be created.
|
|
237
|
+
*
|
|
234
238
|
* @since 3.16.0
|
|
235
239
|
*/
|
|
236
240
|
export declare namespace WillCreateFilesRequest {
|
|
@@ -27,6 +27,10 @@ var FileOperationPatternKind;
|
|
|
27
27
|
* The will create files request is sent from the client to the server before files are actually
|
|
28
28
|
* created as long as the creation is triggered from within the client.
|
|
29
29
|
*
|
|
30
|
+
* The request can return a `WorkspaceEdit` which will be applied to workspace before the
|
|
31
|
+
* files are created. Hence the `WorkspaceEdit` can not manipulate the content of the file
|
|
32
|
+
* to be created.
|
|
33
|
+
*
|
|
30
34
|
* @since 3.16.0
|
|
31
35
|
*/
|
|
32
36
|
var WillCreateFilesRequest;
|
package/metaModel.schema.json
CHANGED
|
@@ -94,6 +94,10 @@
|
|
|
94
94
|
"additionalProperties": false,
|
|
95
95
|
"description": "Defines an enumeration.",
|
|
96
96
|
"properties": {
|
|
97
|
+
"deprecated": {
|
|
98
|
+
"description": "Whether the enumeration is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
97
101
|
"documentation": {
|
|
98
102
|
"description": "An optional documentation.",
|
|
99
103
|
"type": "string"
|
|
@@ -137,6 +141,10 @@
|
|
|
137
141
|
"additionalProperties": false,
|
|
138
142
|
"description": "Defines an enumeration entry.",
|
|
139
143
|
"properties": {
|
|
144
|
+
"deprecated": {
|
|
145
|
+
"description": "Whether the enum entry is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
140
148
|
"documentation": {
|
|
141
149
|
"description": "An optional documentation.",
|
|
142
150
|
"type": "string"
|
|
@@ -340,6 +348,10 @@
|
|
|
340
348
|
"additionalProperties": false,
|
|
341
349
|
"description": "Represents a LSP notification",
|
|
342
350
|
"properties": {
|
|
351
|
+
"deprecated": {
|
|
352
|
+
"description": "Whether the notification is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
353
|
+
"type": "string"
|
|
354
|
+
},
|
|
343
355
|
"documentation": {
|
|
344
356
|
"description": "An optional documentation;",
|
|
345
357
|
"type": "string"
|
|
@@ -414,6 +426,10 @@
|
|
|
414
426
|
"additionalProperties": false,
|
|
415
427
|
"description": "Represents an object property.",
|
|
416
428
|
"properties": {
|
|
429
|
+
"deprecated": {
|
|
430
|
+
"description": "Whether the property is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
417
433
|
"documentation": {
|
|
418
434
|
"description": "An optional documentation.",
|
|
419
435
|
"type": "string"
|
|
@@ -467,6 +483,10 @@
|
|
|
467
483
|
"additionalProperties": false,
|
|
468
484
|
"description": "Represents a LSP request",
|
|
469
485
|
"properties": {
|
|
486
|
+
"deprecated": {
|
|
487
|
+
"description": "Whether the request is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
488
|
+
"type": "string"
|
|
489
|
+
},
|
|
470
490
|
"documentation": {
|
|
471
491
|
"description": "An optional documentation;",
|
|
472
492
|
"type": "string"
|
|
@@ -551,6 +571,10 @@
|
|
|
551
571
|
"additionalProperties": false,
|
|
552
572
|
"description": "Defines the structure of an object literal.",
|
|
553
573
|
"properties": {
|
|
574
|
+
"deprecated": {
|
|
575
|
+
"description": "Whether the structure is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
576
|
+
"type": "string"
|
|
577
|
+
},
|
|
554
578
|
"documentation": {
|
|
555
579
|
"description": "An optional documentation;",
|
|
556
580
|
"type": "string"
|
|
@@ -599,6 +623,10 @@
|
|
|
599
623
|
"additionalProperties": false,
|
|
600
624
|
"description": "Defines a unnamed structure of an object literal.",
|
|
601
625
|
"properties": {
|
|
626
|
+
"deprecated": {
|
|
627
|
+
"description": "Whether the literal is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
628
|
+
"type": "string"
|
|
629
|
+
},
|
|
602
630
|
"documentation": {
|
|
603
631
|
"description": "An optional documentation.",
|
|
604
632
|
"type": "string"
|
|
@@ -704,6 +732,10 @@
|
|
|
704
732
|
"additionalProperties": false,
|
|
705
733
|
"description": "Defines a type alias. (e.g. `type Definition = Location | LocationLink`)",
|
|
706
734
|
"properties": {
|
|
735
|
+
"deprecated": {
|
|
736
|
+
"description": "Whether the type alias is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
737
|
+
"type": "string"
|
|
738
|
+
},
|
|
707
739
|
"documentation": {
|
|
708
740
|
"description": "An optional documentation.",
|
|
709
741
|
"type": "string"
|
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.3-next.
|
|
4
|
+
"version": "3.17.3-next.4",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"typings": "./lib/common/api.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode-jsonrpc": "8.1.0-next.
|
|
21
|
+
"vscode-jsonrpc": "8.1.0-next.5",
|
|
22
22
|
"vscode-languageserver-types": "3.17.3-next.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|