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.
Files changed (42) hide show
  1. package/lib/browser/main.js +0 -1
  2. package/lib/common/api.js +0 -1
  3. package/lib/common/connection.d.ts +13 -13
  4. package/lib/common/connection.js +0 -1
  5. package/lib/common/messages.js +0 -1
  6. package/lib/common/protocol.$.js +0 -1
  7. package/lib/common/protocol.callHierarchy.js +0 -1
  8. package/lib/common/protocol.colorProvider.d.ts +6 -6
  9. package/lib/common/protocol.colorProvider.js +4 -5
  10. package/lib/common/protocol.configuration.js +0 -1
  11. package/lib/common/protocol.d.ts +98 -98
  12. package/lib/common/protocol.declaration.d.ts +2 -2
  13. package/lib/common/protocol.declaration.js +2 -3
  14. package/lib/common/protocol.diagnostic.js +1 -2
  15. package/lib/common/protocol.fileOperations.d.ts +4 -0
  16. package/lib/common/protocol.fileOperations.js +4 -1
  17. package/lib/common/protocol.foldingRange.d.ts +3 -3
  18. package/lib/common/protocol.foldingRange.js +2 -3
  19. package/lib/common/protocol.implementation.d.ts +1 -1
  20. package/lib/common/protocol.implementation.js +1 -2
  21. package/lib/common/protocol.inlayHint.d.ts +4 -4
  22. package/lib/common/protocol.inlayHint.js +5 -6
  23. package/lib/common/protocol.inlineValue.d.ts +2 -2
  24. package/lib/common/protocol.inlineValue.js +3 -4
  25. package/lib/common/protocol.js +30 -31
  26. package/lib/common/protocol.linkedEditingRange.js +0 -1
  27. package/lib/common/protocol.moniker.d.ts +2 -2
  28. package/lib/common/protocol.moniker.js +2 -3
  29. package/lib/common/protocol.notebook.js +0 -1
  30. package/lib/common/protocol.progress.js +0 -1
  31. package/lib/common/protocol.selectionRange.d.ts +2 -2
  32. package/lib/common/protocol.selectionRange.js +2 -3
  33. package/lib/common/protocol.semanticTokens.js +1 -2
  34. package/lib/common/protocol.showDocument.js +0 -1
  35. package/lib/common/protocol.typeDefinition.d.ts +1 -1
  36. package/lib/common/protocol.typeDefinition.js +1 -2
  37. package/lib/common/protocol.typeHierarchy.js +0 -1
  38. package/lib/common/protocol.workspaceFolder.js +0 -1
  39. package/lib/common/utils/is.js +0 -1
  40. package/lib/node/main.js +0 -1
  41. package/metaModel.schema.json +32 -0
  42. package/package.json +8 -6
@@ -26,4 +26,3 @@ function createProtocolConnection(reader, writer, logger, options) {
26
26
  return (0, browser_1.createMessageConnection)(reader, writer, logger, options);
27
27
  }
28
28
  exports.createProtocolConnection = createProtocolConnection;
29
- //# sourceMappingURL=main.js.map
package/lib/common/api.js CHANGED
@@ -75,4 +75,3 @@ var LSPErrorCodes;
75
75
  */
76
76
  LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
77
77
  })(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
78
- //# sourceMappingURL=api.js.map
@@ -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, MessageSignature } 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 } 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 message signature or the method name.
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: MessageSignature | string, token?: CancellationToken): Promise<R>;
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 message signature or the method name.
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: MessageSignature | string, param: any, token?: CancellationToken): Promise<R>;
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 signature or the method name to install a handler for.
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: MessageSignature | string, handler: GenericRequestHandler<R, E>): Disposable;
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 signature or the method name.
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: MessageSignature | string): Promise<void>;
97
+ sendNotification(method: string): Promise<void>;
98
98
  /**
99
99
  * Sends a notification.
100
100
  *
101
- * @param method the notification's method signature or the method name.
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: MessageSignature | string, params: any): Promise<void>;
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 signature or the method name to install the handler for.
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: MessageSignature | string, handler: GenericNotificationHandler): Disposable;
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
@@ -13,4 +13,3 @@ function createProtocolConnection(input, output, logger, options) {
13
13
  return (0, vscode_jsonrpc_1.createMessageConnection)(input, output, logger, options);
14
14
  }
15
15
  exports.createProtocolConnection = createProtocolConnection;
16
- //# sourceMappingURL=connection.js.map
@@ -42,4 +42,3 @@ class ProtocolNotificationType extends vscode_jsonrpc_1.NotificationType {
42
42
  }
43
43
  }
44
44
  exports.ProtocolNotificationType = ProtocolNotificationType;
45
- //# sourceMappingURL=messages.js.map
@@ -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 [DocumentColorRequest](#DocumentColorRequest).
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 [DocumentColorParams](#DocumentColorParams) the
29
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
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 [ColorPresentationRequest](#ColorPresentationRequest).
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 [ColorPresentationParams](#ColorPresentationParams) the
58
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
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 [DocumentColorParams](#DocumentColorParams) the
12
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
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 [ColorPresentationParams](#ColorPresentationParams) the
24
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
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