vscode-languageserver-protocol 3.17.3-next.2 → 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.
- package/lib/browser/main.js +0 -1
- package/lib/common/api.js +0 -1
- package/lib/common/connection.d.ts +13 -13
- package/lib/common/connection.js +0 -1
- package/lib/common/messages.js +0 -1
- package/lib/common/protocol.$.js +0 -1
- package/lib/common/protocol.callHierarchy.js +0 -1
- package/lib/common/protocol.colorProvider.d.ts +6 -6
- package/lib/common/protocol.colorProvider.js +4 -5
- package/lib/common/protocol.configuration.js +0 -1
- package/lib/common/protocol.d.ts +98 -98
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -3
- package/lib/common/protocol.diagnostic.js +1 -2
- package/lib/common/protocol.fileOperations.d.ts +4 -0
- package/lib/common/protocol.fileOperations.js +4 -1
- package/lib/common/protocol.foldingRange.d.ts +3 -3
- package/lib/common/protocol.foldingRange.js +2 -3
- package/lib/common/protocol.implementation.d.ts +1 -1
- package/lib/common/protocol.implementation.js +1 -2
- package/lib/common/protocol.inlayHint.d.ts +4 -4
- package/lib/common/protocol.inlayHint.js +5 -6
- package/lib/common/protocol.inlineValue.d.ts +2 -2
- package/lib/common/protocol.inlineValue.js +3 -4
- package/lib/common/protocol.js +30 -31
- package/lib/common/protocol.linkedEditingRange.js +0 -1
- package/lib/common/protocol.moniker.d.ts +2 -2
- package/lib/common/protocol.moniker.js +2 -3
- package/lib/common/protocol.notebook.js +0 -1
- package/lib/common/protocol.progress.js +0 -1
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.selectionRange.js +2 -3
- package/lib/common/protocol.semanticTokens.js +1 -2
- package/lib/common/protocol.showDocument.js +0 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/protocol.typeDefinition.js +1 -2
- package/lib/common/protocol.typeHierarchy.js +0 -1
- package/lib/common/protocol.workspaceFolder.js +0 -1
- package/lib/common/utils/is.js +0 -1
- package/lib/node/main.js +0 -1
- package/metaModel.schema.json +32 -0
- package/package.json +8 -6
package/lib/browser/main.js
CHANGED
package/lib/common/api.js
CHANGED
|
@@ -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
|
package/lib/common/connection.js
CHANGED
package/lib/common/messages.js
CHANGED
package/lib/common/protocol.$.js
CHANGED
|
@@ -41,4 +41,3 @@ var ProgressNotification;
|
|
|
41
41
|
ProgressNotification.messageDirection = messages_1.MessageDirection.both;
|
|
42
42
|
ProgressNotification.type = new messages_1.ProtocolNotificationType(ProgressNotification.method);
|
|
43
43
|
})(ProgressNotification || (ProgressNotification = {}));
|
|
44
|
-
//# sourceMappingURL=protocol.$.js.map
|
|
@@ -40,4 +40,3 @@ var CallHierarchyOutgoingCallsRequest;
|
|
|
40
40
|
CallHierarchyOutgoingCallsRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
41
41
|
CallHierarchyOutgoingCallsRequest.type = new messages_1.ProtocolRequestType(CallHierarchyOutgoingCallsRequest.method);
|
|
42
42
|
})(CallHierarchyOutgoingCallsRequest = exports.CallHierarchyOutgoingCallsRequest || (exports.CallHierarchyOutgoingCallsRequest = {}));
|
|
43
|
-
//# sourceMappingURL=protocol.callHierarchy.js.map
|
|
@@ -15,7 +15,7 @@ export interface DocumentColorOptions extends WorkDoneProgressOptions {
|
|
|
15
15
|
export interface DocumentColorRegistrationOptions extends TextDocumentRegistrationOptions, StaticRegistrationOptions, DocumentColorOptions {
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Parameters for a
|
|
18
|
+
* Parameters for a {@link DocumentColorRequest}.
|
|
19
19
|
*/
|
|
20
20
|
export interface DocumentColorParams extends WorkDoneProgressParams, PartialResultParams {
|
|
21
21
|
/**
|
|
@@ -25,8 +25,8 @@ export interface DocumentColorParams extends WorkDoneProgressParams, PartialResu
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* A request to list all color symbols found in a given text document. The request's
|
|
28
|
-
* parameter is of type
|
|
29
|
-
* response is of type
|
|
28
|
+
* parameter is of type {@link DocumentColorParams} the
|
|
29
|
+
* response is of type {@link ColorInformation ColorInformation[]} or a Thenable
|
|
30
30
|
* that resolves to such.
|
|
31
31
|
*/
|
|
32
32
|
export declare namespace DocumentColorRequest {
|
|
@@ -36,7 +36,7 @@ export declare namespace DocumentColorRequest {
|
|
|
36
36
|
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* Parameters for a
|
|
39
|
+
* Parameters for a {@link ColorPresentationRequest}.
|
|
40
40
|
*/
|
|
41
41
|
export interface ColorPresentationParams extends WorkDoneProgressParams, PartialResultParams {
|
|
42
42
|
/**
|
|
@@ -54,8 +54,8 @@ export interface ColorPresentationParams extends WorkDoneProgressParams, Partial
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* A request to list all presentation for a color. The request's
|
|
57
|
-
* parameter is of type
|
|
58
|
-
* response is of type
|
|
57
|
+
* parameter is of type {@link ColorPresentationParams} the
|
|
58
|
+
* response is of type {@link ColorInformation ColorInformation[]} or a Thenable
|
|
59
59
|
* that resolves to such.
|
|
60
60
|
*/
|
|
61
61
|
export declare namespace ColorPresentationRequest {
|
|
@@ -8,8 +8,8 @@ exports.ColorPresentationRequest = exports.DocumentColorRequest = void 0;
|
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
9
|
/**
|
|
10
10
|
* A request to list all color symbols found in a given text document. The request's
|
|
11
|
-
* parameter is of type
|
|
12
|
-
* response is of type
|
|
11
|
+
* parameter is of type {@link DocumentColorParams} the
|
|
12
|
+
* response is of type {@link ColorInformation ColorInformation[]} or a Thenable
|
|
13
13
|
* that resolves to such.
|
|
14
14
|
*/
|
|
15
15
|
var DocumentColorRequest;
|
|
@@ -20,8 +20,8 @@ var DocumentColorRequest;
|
|
|
20
20
|
})(DocumentColorRequest = exports.DocumentColorRequest || (exports.DocumentColorRequest = {}));
|
|
21
21
|
/**
|
|
22
22
|
* A request to list all presentation for a color. The request's
|
|
23
|
-
* parameter is of type
|
|
24
|
-
* response is of type
|
|
23
|
+
* parameter is of type {@link ColorPresentationParams} the
|
|
24
|
+
* response is of type {@link ColorInformation ColorInformation[]} or a Thenable
|
|
25
25
|
* that resolves to such.
|
|
26
26
|
*/
|
|
27
27
|
var ColorPresentationRequest;
|
|
@@ -30,4 +30,3 @@ var ColorPresentationRequest;
|
|
|
30
30
|
ColorPresentationRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
31
31
|
ColorPresentationRequest.type = new messages_1.ProtocolRequestType(ColorPresentationRequest.method);
|
|
32
32
|
})(ColorPresentationRequest = exports.ColorPresentationRequest || (exports.ColorPresentationRequest = {}));
|
|
33
|
-
//# sourceMappingURL=protocol.colorProvider.js.map
|
|
@@ -22,4 +22,3 @@ var ConfigurationRequest;
|
|
|
22
22
|
ConfigurationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
23
23
|
ConfigurationRequest.type = new messages_1.ProtocolRequestType(ConfigurationRequest.method);
|
|
24
24
|
})(ConfigurationRequest = exports.ConfigurationRequest || (exports.ConfigurationRequest = {}));
|
|
25
|
-
//# sourceMappingURL=protocol.configuration.js.map
|