@depup/vscode-languageserver-protocol 3.18.3-depup.0

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 (67) hide show
  1. package/License.txt +11 -0
  2. package/README.md +25 -0
  3. package/changes.json +5 -0
  4. package/eslint.config.js +13 -0
  5. package/lib/browser/main.d.ts +4 -0
  6. package/lib/browser/main.js +27 -0
  7. package/lib/common/api.d.ts +58 -0
  8. package/lib/common/api.js +77 -0
  9. package/lib/common/connection.d.ts +187 -0
  10. package/lib/common/connection.js +14 -0
  11. package/lib/common/messages.d.ts +58 -0
  12. package/lib/common/messages.js +81 -0
  13. package/lib/common/protocol.$.d.ts +1 -0
  14. package/lib/common/protocol.$.js +43 -0
  15. package/lib/common/protocol.callHierarchy.d.ts +89 -0
  16. package/lib/common/protocol.callHierarchy.js +45 -0
  17. package/lib/common/protocol.colorProvider.d.ts +68 -0
  18. package/lib/common/protocol.colorProvider.js +34 -0
  19. package/lib/common/protocol.configuration.d.ts +36 -0
  20. package/lib/common/protocol.configuration.js +25 -0
  21. package/lib/common/protocol.d.ts +3626 -0
  22. package/lib/common/protocol.declaration.d.ts +38 -0
  23. package/lib/common/protocol.declaration.js +23 -0
  24. package/lib/common/protocol.diagnostic.d.ts +369 -0
  25. package/lib/common/protocol.diagnostic.js +111 -0
  26. package/lib/common/protocol.fileOperations.d.ts +312 -0
  27. package/lib/common/protocol.fileOperations.js +107 -0
  28. package/lib/common/protocol.foldingRange.d.ts +118 -0
  29. package/lib/common/protocol.foldingRange.js +33 -0
  30. package/lib/common/protocol.implementation.d.ts +39 -0
  31. package/lib/common/protocol.implementation.js +22 -0
  32. package/lib/common/protocol.inlayHint.d.ts +117 -0
  33. package/lib/common/protocol.inlayHint.js +46 -0
  34. package/lib/common/protocol.inlineCompletion.d.ts +53 -0
  35. package/lib/common/protocol.inlineCompletion.js +22 -0
  36. package/lib/common/protocol.inlineValue.d.ts +88 -0
  37. package/lib/common/protocol.inlineValue.js +32 -0
  38. package/lib/common/protocol.js +1031 -0
  39. package/lib/common/protocol.linkedEditingRange.d.ts +53 -0
  40. package/lib/common/protocol.linkedEditingRange.js +20 -0
  41. package/lib/common/protocol.moniker.d.ts +107 -0
  42. package/lib/common/protocol.moniker.js +69 -0
  43. package/lib/common/protocol.notebook.d.ts +428 -0
  44. package/lib/common/protocol.notebook.js +247 -0
  45. package/lib/common/protocol.progress.d.ts +108 -0
  46. package/lib/common/protocol.progress.js +38 -0
  47. package/lib/common/protocol.selectionRange.d.ts +42 -0
  48. package/lib/common/protocol.selectionRange.js +21 -0
  49. package/lib/common/protocol.semanticTokens.d.ts +241 -0
  50. package/lib/common/protocol.semanticTokens.js +61 -0
  51. package/lib/common/protocol.showDocument.d.ts +73 -0
  52. package/lib/common/protocol.showDocument.js +23 -0
  53. package/lib/common/protocol.textDocumentContent.d.ts +93 -0
  54. package/lib/common/protocol.textDocumentContent.js +33 -0
  55. package/lib/common/protocol.typeDefinition.d.ts +39 -0
  56. package/lib/common/protocol.typeDefinition.js +22 -0
  57. package/lib/common/protocol.typeHierarchy.d.ts +84 -0
  58. package/lib/common/protocol.typeHierarchy.js +43 -0
  59. package/lib/common/protocol.workspaceFolder.d.ts +76 -0
  60. package/lib/common/protocol.workspaceFolder.js +29 -0
  61. package/lib/common/utils/is.d.ts +9 -0
  62. package/lib/common/utils/is.js +45 -0
  63. package/lib/node/main.d.ts +5 -0
  64. package/lib/node/main.js +27 -0
  65. package/metaModel.schema.json +864 -0
  66. package/package.json +68 -0
  67. package/thirdpartynotices.txt +31 -0
@@ -0,0 +1,117 @@
1
+ import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
2
+ import { Range, TextDocumentIdentifier, InlayHint } from 'vscode-languageserver-types';
3
+ import { CM, MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
4
+ import { type StaticRegistrationOptions, type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type WorkDoneProgressParams } from './protocol';
5
+ /**
6
+ * @since 3.18.0
7
+ */
8
+ export type ClientInlayHintResolveOptions = {
9
+ /**
10
+ * The properties that a client can resolve lazily.
11
+ */
12
+ properties: string[];
13
+ };
14
+ /**
15
+ * Inlay hint client capabilities.
16
+ *
17
+ * @since 3.17.0
18
+ */
19
+ export type InlayHintClientCapabilities = {
20
+ /**
21
+ * Whether inlay hints support dynamic registration.
22
+ */
23
+ dynamicRegistration?: boolean;
24
+ /**
25
+ * Indicates which properties a client can resolve lazily on an inlay
26
+ * hint.
27
+ */
28
+ resolveSupport?: ClientInlayHintResolveOptions;
29
+ };
30
+ /**
31
+ * Client workspace capabilities specific to inlay hints.
32
+ *
33
+ * @since 3.17.0
34
+ */
35
+ export type InlayHintWorkspaceClientCapabilities = {
36
+ /**
37
+ * Whether the client implementation supports a refresh request sent from
38
+ * the server to the client.
39
+ *
40
+ * Note that this event is global and will force the client to refresh all
41
+ * inlay hints currently shown. It should be used with absolute care and
42
+ * is useful for situation where a server for example detects a project wide
43
+ * change that requires such a calculation.
44
+ */
45
+ refreshSupport?: boolean;
46
+ };
47
+ /**
48
+ * Inlay hint options used during static registration.
49
+ *
50
+ * @since 3.17.0
51
+ */
52
+ export type InlayHintOptions = WorkDoneProgressOptions & {
53
+ /**
54
+ * The server provides support to resolve additional
55
+ * information for an inlay hint item.
56
+ */
57
+ resolveProvider?: boolean;
58
+ };
59
+ /**
60
+ * Inlay hint options used during static or dynamic registration.
61
+ *
62
+ * @since 3.17.0
63
+ */
64
+ export type InlayHintRegistrationOptions = InlayHintOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
65
+ /**
66
+ * A parameter literal used in inlay hint requests.
67
+ *
68
+ * @since 3.17.0
69
+ */
70
+ export type InlayHintParams = WorkDoneProgressParams & {
71
+ /**
72
+ * The text document.
73
+ */
74
+ textDocument: TextDocumentIdentifier;
75
+ /**
76
+ * The document range for which inlay hints should be computed.
77
+ */
78
+ range: Range;
79
+ };
80
+ /**
81
+ * A request to provide inlay hints in a document. The request's parameter is of
82
+ * type {@link InlayHintsParams}, the response is of type
83
+ * {@link InlayHint InlayHint[]} or a Thenable that resolves to such.
84
+ *
85
+ * @since 3.17.0
86
+ */
87
+ export declare namespace InlayHintRequest {
88
+ const method: 'textDocument/inlayHint';
89
+ const messageDirection: MessageDirection;
90
+ const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
91
+ type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
92
+ const capabilities: CM<"textDocument.inlayHint", "inlayHintProvider">;
93
+ }
94
+ /**
95
+ * A request to resolve additional properties for an inlay hint.
96
+ * The request's parameter is of type {@link InlayHint}, the response is
97
+ * of type {@link InlayHint} or a Thenable that resolves to such.
98
+ *
99
+ * @since 3.17.0
100
+ */
101
+ export declare namespace InlayHintResolveRequest {
102
+ const method: 'inlayHint/resolve';
103
+ const messageDirection: MessageDirection;
104
+ const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
105
+ type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
106
+ const capabilities: CM<"textDocument.inlayHint.resolveSupport", "inlayHintProvider.resolveProvider">;
107
+ }
108
+ /**
109
+ * @since 3.17.0
110
+ */
111
+ export declare namespace InlayHintRefreshRequest {
112
+ const method: `workspace/inlayHint/refresh`;
113
+ const messageDirection: MessageDirection;
114
+ const type: ProtocolRequestType0<void, void, void, void>;
115
+ type HandlerSignature = RequestHandler0<void, void>;
116
+ const capabilities: CM<"workspace.inlayHint.refreshSupport", undefined>;
117
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * A request to provide inlay hints in a document. The request's parameter is of
11
+ * type {@link InlayHintsParams}, the response is of type
12
+ * {@link InlayHint InlayHint[]} or a Thenable that resolves to such.
13
+ *
14
+ * @since 3.17.0
15
+ */
16
+ var InlayHintRequest;
17
+ (function (InlayHintRequest) {
18
+ InlayHintRequest.method = 'textDocument/inlayHint';
19
+ InlayHintRequest.messageDirection = messages_1.MessageDirection.clientToServer;
20
+ InlayHintRequest.type = new messages_1.ProtocolRequestType(InlayHintRequest.method);
21
+ InlayHintRequest.capabilities = messages_1.CM.create('textDocument.inlayHint', 'inlayHintProvider');
22
+ })(InlayHintRequest || (exports.InlayHintRequest = InlayHintRequest = {}));
23
+ /**
24
+ * A request to resolve additional properties for an inlay hint.
25
+ * The request's parameter is of type {@link InlayHint}, the response is
26
+ * of type {@link InlayHint} or a Thenable that resolves to such.
27
+ *
28
+ * @since 3.17.0
29
+ */
30
+ var InlayHintResolveRequest;
31
+ (function (InlayHintResolveRequest) {
32
+ InlayHintResolveRequest.method = 'inlayHint/resolve';
33
+ InlayHintResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
34
+ InlayHintResolveRequest.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest.method);
35
+ InlayHintResolveRequest.capabilities = messages_1.CM.create('textDocument.inlayHint.resolveSupport', 'inlayHintProvider.resolveProvider');
36
+ })(InlayHintResolveRequest || (exports.InlayHintResolveRequest = InlayHintResolveRequest = {}));
37
+ /**
38
+ * @since 3.17.0
39
+ */
40
+ var InlayHintRefreshRequest;
41
+ (function (InlayHintRefreshRequest) {
42
+ InlayHintRefreshRequest.method = `workspace/inlayHint/refresh`;
43
+ InlayHintRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
44
+ InlayHintRefreshRequest.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest.method);
45
+ InlayHintRefreshRequest.capabilities = messages_1.CM.create('workspace.inlayHint.refreshSupport', undefined);
46
+ })(InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = InlayHintRefreshRequest = {}));
@@ -0,0 +1,53 @@
1
+ import { InlineCompletionItem, InlineCompletionContext, InlineCompletionList } from 'vscode-languageserver-types';
2
+ import { RequestHandler } from 'vscode-jsonrpc';
3
+ import { CM, MessageDirection, ProtocolRequestType } from './messages';
4
+ import { type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type StaticRegistrationOptions, type WorkDoneProgressParams, type TextDocumentPositionParams } from './protocol';
5
+ /**
6
+ * Client capabilities specific to inline completions.
7
+ *
8
+ * @since 3.18.0
9
+ */
10
+ export type InlineCompletionClientCapabilities = {
11
+ /**
12
+ * Whether implementation supports dynamic registration for inline completion providers.
13
+ */
14
+ dynamicRegistration?: boolean;
15
+ };
16
+ /**
17
+ * Inline completion options used during static registration.
18
+ *
19
+ * @since 3.18.0
20
+ */
21
+ export type InlineCompletionOptions = WorkDoneProgressOptions;
22
+ /**
23
+ * Inline completion options used during static or dynamic registration.
24
+ *
25
+ * @since 3.18.0
26
+ */
27
+ export type InlineCompletionRegistrationOptions = InlineCompletionOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
28
+ /**
29
+ * A parameter literal used in inline completion requests.
30
+ *
31
+ * @since 3.18.0
32
+ */
33
+ export type InlineCompletionParams = WorkDoneProgressParams & TextDocumentPositionParams & {
34
+ /**
35
+ * Additional information about the context in which inline completions were
36
+ * requested.
37
+ */
38
+ context: InlineCompletionContext;
39
+ };
40
+ /**
41
+ * A request to provide inline completions in a document. The request's parameter is of
42
+ * type {@link InlineCompletionParams}, the response is of type
43
+ * {@link InlineCompletion InlineCompletion[]} or a Thenable that resolves to such.
44
+ *
45
+ * @since 3.18.0
46
+ */
47
+ export declare namespace InlineCompletionRequest {
48
+ const method: 'textDocument/inlineCompletion';
49
+ const messageDirection: MessageDirection;
50
+ const type: ProtocolRequestType<InlineCompletionParams, InlineCompletionList | InlineCompletionItem[] | null, InlineCompletionItem[], void, InlineCompletionRegistrationOptions>;
51
+ type HandlerSignature = RequestHandler<InlineCompletionParams, InlineCompletionList | InlineCompletionItem[] | null, void>;
52
+ const capabilities: CM<"textDocument.inlineCompletion", "inlineCompletionProvider">;
53
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.InlineCompletionRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * A request to provide inline completions in a document. The request's parameter is of
11
+ * type {@link InlineCompletionParams}, the response is of type
12
+ * {@link InlineCompletion InlineCompletion[]} or a Thenable that resolves to such.
13
+ *
14
+ * @since 3.18.0
15
+ */
16
+ var InlineCompletionRequest;
17
+ (function (InlineCompletionRequest) {
18
+ InlineCompletionRequest.method = 'textDocument/inlineCompletion';
19
+ InlineCompletionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
20
+ InlineCompletionRequest.type = new messages_1.ProtocolRequestType(InlineCompletionRequest.method);
21
+ InlineCompletionRequest.capabilities = messages_1.CM.create('textDocument.inlineCompletion', 'inlineCompletionProvider');
22
+ })(InlineCompletionRequest || (exports.InlineCompletionRequest = InlineCompletionRequest = {}));
@@ -0,0 +1,88 @@
1
+ import { TextDocumentIdentifier, Range, InlineValue, InlineValueContext } from 'vscode-languageserver-types';
2
+ import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
3
+ import { CM, MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
4
+ import { type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type StaticRegistrationOptions, type WorkDoneProgressParams } from './protocol';
5
+ /**
6
+ * Client capabilities specific to inline values.
7
+ *
8
+ * @since 3.17.0
9
+ */
10
+ export type InlineValueClientCapabilities = {
11
+ /**
12
+ * Whether implementation supports dynamic registration for inline value providers.
13
+ */
14
+ dynamicRegistration?: boolean;
15
+ };
16
+ /**
17
+ * Client workspace capabilities specific to inline values.
18
+ *
19
+ * @since 3.17.0
20
+ */
21
+ export type InlineValueWorkspaceClientCapabilities = {
22
+ /**
23
+ * Whether the client implementation supports a refresh request sent from the
24
+ * server to the client.
25
+ *
26
+ * Note that this event is global and will force the client to refresh all
27
+ * inline values currently shown. It should be used with absolute care and is
28
+ * useful for situation where a server for example detects a project wide
29
+ * change that requires such a calculation.
30
+ */
31
+ refreshSupport?: boolean;
32
+ };
33
+ /**
34
+ * Inline value options used during static registration.
35
+ *
36
+ * @since 3.17.0
37
+ */
38
+ export type InlineValueOptions = WorkDoneProgressOptions;
39
+ /**
40
+ * Inline value options used during static or dynamic registration.
41
+ *
42
+ * @since 3.17.0
43
+ */
44
+ export type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
45
+ /**
46
+ * A parameter literal used in inline value requests.
47
+ *
48
+ * @since 3.17.0
49
+ */
50
+ export type InlineValueParams = WorkDoneProgressParams & {
51
+ /**
52
+ * The text document.
53
+ */
54
+ textDocument: TextDocumentIdentifier;
55
+ /**
56
+ * The document range for which inline values information will be returned.
57
+ */
58
+ range: Range;
59
+ /**
60
+ * Additional information about the context in which inline values information was
61
+ * requested.
62
+ */
63
+ context: InlineValueContext;
64
+ };
65
+ /**
66
+ * A request to provide inline values in a document. The request's parameter is of
67
+ * type {@link InlineValueParams}, the response is of type
68
+ * {@link InlineValue InlineValue[]} or a Thenable that resolves to such.
69
+ *
70
+ * @since 3.17.0
71
+ */
72
+ export declare namespace InlineValueRequest {
73
+ const method: 'textDocument/inlineValue';
74
+ const messageDirection: MessageDirection;
75
+ const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
76
+ type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
77
+ const capabilities: CM<"textDocument.inlineValue", "inlineValueProvider">;
78
+ }
79
+ /**
80
+ * @since 3.17.0
81
+ */
82
+ export declare namespace InlineValueRefreshRequest {
83
+ const method: `workspace/inlineValue/refresh`;
84
+ const messageDirection: MessageDirection;
85
+ const type: ProtocolRequestType0<void, void, void, void>;
86
+ type HandlerSignature = RequestHandler0<void, void>;
87
+ const capabilities: CM<"workspace.inlineValue.refreshSupport", undefined>;
88
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.InlineValueRefreshRequest = exports.InlineValueRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * A request to provide inline values in a document. The request's parameter is of
11
+ * type {@link InlineValueParams}, the response is of type
12
+ * {@link InlineValue InlineValue[]} or a Thenable that resolves to such.
13
+ *
14
+ * @since 3.17.0
15
+ */
16
+ var InlineValueRequest;
17
+ (function (InlineValueRequest) {
18
+ InlineValueRequest.method = 'textDocument/inlineValue';
19
+ InlineValueRequest.messageDirection = messages_1.MessageDirection.clientToServer;
20
+ InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
21
+ InlineValueRequest.capabilities = messages_1.CM.create('textDocument.inlineValue', 'inlineValueProvider');
22
+ })(InlineValueRequest || (exports.InlineValueRequest = InlineValueRequest = {}));
23
+ /**
24
+ * @since 3.17.0
25
+ */
26
+ var InlineValueRefreshRequest;
27
+ (function (InlineValueRefreshRequest) {
28
+ InlineValueRefreshRequest.method = `workspace/inlineValue/refresh`;
29
+ InlineValueRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
30
+ InlineValueRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest.method);
31
+ InlineValueRefreshRequest.capabilities = messages_1.CM.create('workspace.inlineValue.refreshSupport', undefined);
32
+ })(InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = InlineValueRefreshRequest = {}));