vscode-languageserver-protocol 3.17.0-next.9 → 3.17.2-next.1

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/README.md +1 -1
  2. package/lib/browser/main.js +5 -1
  3. package/lib/common/api.d.ts +1 -37
  4. package/lib/common/api.js +6 -15
  5. package/lib/common/connection.d.ts +26 -2
  6. package/lib/common/protocol.$.d.ts +1 -0
  7. package/lib/common/protocol.$.js +36 -0
  8. package/lib/common/protocol.callHierarchy.d.ts +1 -1
  9. package/lib/common/protocol.colorProvider.d.ts +1 -1
  10. package/lib/common/protocol.configuration.d.ts +4 -16
  11. package/lib/common/protocol.configuration.js +1 -0
  12. package/lib/common/protocol.d.ts +438 -73
  13. package/lib/common/protocol.declaration.d.ts +2 -2
  14. package/lib/common/protocol.declaration.js +2 -2
  15. package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +85 -71
  16. package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +8 -8
  17. package/lib/common/protocol.foldingRange.d.ts +40 -27
  18. package/lib/common/protocol.foldingRange.js +1 -19
  19. package/lib/common/protocol.implementation.d.ts +2 -2
  20. package/lib/common/protocol.implementation.js +2 -2
  21. package/lib/common/protocol.inlayHint.d.ts +107 -0
  22. package/lib/common/protocol.inlayHint.js +41 -0
  23. package/lib/common/protocol.inlineValue.d.ts +84 -0
  24. package/lib/common/protocol.inlineValue.js +29 -0
  25. package/lib/common/protocol.js +131 -17
  26. package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
  27. package/lib/common/protocol.moniker.d.ts +13 -11
  28. package/lib/common/protocol.moniker.js +8 -8
  29. package/lib/common/protocol.notebook.d.ts +391 -0
  30. package/lib/common/protocol.notebook.js +206 -0
  31. package/lib/common/protocol.progress.d.ts +2 -14
  32. package/lib/common/protocol.progress.js +4 -2
  33. package/lib/common/protocol.selectionRange.d.ts +2 -2
  34. package/lib/common/protocol.semanticTokens.d.ts +23 -1
  35. package/lib/common/protocol.typeDefinition.d.ts +1 -1
  36. package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +19 -22
  37. package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +4 -4
  38. package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +12 -42
  39. package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
  40. package/lib/node/main.js +5 -1
  41. package/metaModel.schema.json +705 -0
  42. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import { TextDocumentIdentifier, Range, uinteger, SemanticTokensEdit, SemanticTokensLegend, SemanticTokens, SemanticTokensDelta } from 'vscode-languageserver-types';
2
2
  import { RequestHandler0, RequestHandler } from 'vscode-jsonrpc';
3
3
  import { ProtocolRequestType, ProtocolRequestType0, RegistrationType } from './messages';
4
- import { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
4
+ import type { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
5
5
  /**
6
6
  * @since 3.16.0
7
7
  */
@@ -76,6 +76,28 @@ export interface SemanticTokensClientCapabilities {
76
76
  * Whether the client supports tokens that can span multiple lines.
77
77
  */
78
78
  multilineTokenSupport?: boolean;
79
+ /**
80
+ * Whether the client allows the server to actively cancel a
81
+ * semantic token request, e.g. supports returning
82
+ * LSPErrorCodes.ServerCancelled. If a server does the client
83
+ * needs to retrigger the request.
84
+ *
85
+ * @since 3.17.0
86
+ */
87
+ serverCancelSupport?: boolean;
88
+ /**
89
+ * Whether the client uses semantic tokens to augment existing
90
+ * syntax tokens. If set to `true` client side created syntax
91
+ * tokens and semantic tokens are both used for colorization. If
92
+ * set to `false` the client only uses the returned semantic tokens
93
+ * for colorization.
94
+ *
95
+ * If the value is `undefined` then the client behavior is not
96
+ * specified.
97
+ *
98
+ * @since 3.17.0
99
+ */
100
+ augmentsSyntaxTokens?: boolean;
79
101
  }
80
102
  /**
81
103
  * @since 3.16.0
@@ -1,7 +1,7 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType } from './messages';
4
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
+ import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
6
  * Since 3.6.0
7
7
  */
@@ -1,44 +1,41 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { TypeHierarchyItem } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType } from './messages';
4
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
+ import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
- * @since 3.17.0 - proposed state
6
+ * @since 3.17.0
7
7
  */
8
- export interface TypeHierarchyClientCapabilities {
8
+ export declare type TypeHierarchyClientCapabilities = {
9
9
  /**
10
10
  * Whether implementation supports dynamic registration. If this is set to `true`
11
11
  * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
12
12
  * return value for the corresponding server capability as well.
13
13
  */
14
14
  dynamicRegistration?: boolean;
15
- }
15
+ };
16
16
  /**
17
17
  * Type hierarchy options used during static registration.
18
18
  *
19
- * @since 3.17.0 - proposed state
19
+ * @since 3.17.0
20
20
  */
21
- export interface TypeHierarchyOptions extends WorkDoneProgressOptions {
22
- }
21
+ export declare type TypeHierarchyOptions = WorkDoneProgressOptions;
23
22
  /**
24
23
  * Type hierarchy options used during static or dynamic registration.
25
24
  *
26
- * @since 3.17.0 - proposed state
25
+ * @since 3.17.0
27
26
  */
28
- export interface TypeHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, TypeHierarchyOptions, StaticRegistrationOptions {
29
- }
27
+ export declare type TypeHierarchyRegistrationOptions = TextDocumentRegistrationOptions & TypeHierarchyOptions & StaticRegistrationOptions;
30
28
  /**
31
29
  * The parameter of a `textDocument/prepareTypeHierarchy` request.
32
30
  *
33
- * @since 3.17.0 - proposed state
31
+ * @since 3.17.0
34
32
  */
35
- export interface TypeHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
36
- }
33
+ export declare type TypeHierarchyPrepareParams = TextDocumentPositionParams & WorkDoneProgressParams;
37
34
  /**
38
35
  * A request to result a `TypeHierarchyItem` in a document at a given position.
39
36
  * Can be used as an input to a subtypes or supertypes type hierarchy.
40
37
  *
41
- * @since 3.17.0 - proposed state
38
+ * @since 3.17.0
42
39
  */
43
40
  export declare namespace TypeHierarchyPrepareRequest {
44
41
  const method: 'textDocument/prepareTypeHierarchy';
@@ -48,15 +45,15 @@ export declare namespace TypeHierarchyPrepareRequest {
48
45
  /**
49
46
  * The parameter of a `typeHierarchy/supertypes` request.
50
47
  *
51
- * @since 3.17.0 - proposed state
48
+ * @since 3.17.0
52
49
  */
53
- export interface TypeHierarchySupertypesParams extends WorkDoneProgressParams, PartialResultParams {
50
+ export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & PartialResultParams & {
54
51
  item: TypeHierarchyItem;
55
- }
52
+ };
56
53
  /**
57
54
  * A request to resolve the supertypes for a given `TypeHierarchyItem`.
58
55
  *
59
- * @since 3.17.0 - proposed state
56
+ * @since 3.17.0
60
57
  */
61
58
  export declare namespace TypeHierarchySupertypesRequest {
62
59
  const method: 'typeHierarchy/supertypes';
@@ -66,15 +63,15 @@ export declare namespace TypeHierarchySupertypesRequest {
66
63
  /**
67
64
  * The parameter of a `typeHierarchy/subtypes` request.
68
65
  *
69
- * @since 3.17.0 - proposed state
66
+ * @since 3.17.0
70
67
  */
71
- export interface TypeHierarchySubtypesParams extends WorkDoneProgressParams, PartialResultParams {
68
+ export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & PartialResultParams & {
72
69
  item: TypeHierarchyItem;
73
- }
70
+ };
74
71
  /**
75
72
  * A request to resolve the subtypes for a given `TypeHierarchyItem`.
76
73
  *
77
- * @since 3.17.0 - proposed state
74
+ * @since 3.17.0
78
75
  */
79
76
  export declare namespace TypeHierarchySubtypesRequest {
80
77
  const method: 'typeHierarchy/subtypes';
@@ -10,7 +10,7 @@ const messages_1 = require("./messages");
10
10
  * A request to result a `TypeHierarchyItem` in a document at a given position.
11
11
  * Can be used as an input to a subtypes or supertypes type hierarchy.
12
12
  *
13
- * @since 3.17.0 - proposed state
13
+ * @since 3.17.0
14
14
  */
15
15
  var TypeHierarchyPrepareRequest;
16
16
  (function (TypeHierarchyPrepareRequest) {
@@ -20,7 +20,7 @@ var TypeHierarchyPrepareRequest;
20
20
  /**
21
21
  * A request to resolve the supertypes for a given `TypeHierarchyItem`.
22
22
  *
23
- * @since 3.17.0 - proposed state
23
+ * @since 3.17.0
24
24
  */
25
25
  var TypeHierarchySupertypesRequest;
26
26
  (function (TypeHierarchySupertypesRequest) {
@@ -30,11 +30,11 @@ var TypeHierarchySupertypesRequest;
30
30
  /**
31
31
  * A request to resolve the subtypes for a given `TypeHierarchyItem`.
32
32
  *
33
- * @since 3.17.0 - proposed state
33
+ * @since 3.17.0
34
34
  */
35
35
  var TypeHierarchySubtypesRequest;
36
36
  (function (TypeHierarchySubtypesRequest) {
37
37
  TypeHierarchySubtypesRequest.method = 'typeHierarchy/subtypes';
38
38
  TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
39
39
  })(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
40
- //# sourceMappingURL=proposed.typeHierarchy.js.map
40
+ //# sourceMappingURL=protocol.typeHierarchy.js.map
@@ -1,57 +1,27 @@
1
+ import { WorkspaceFolder } from 'vscode-languageserver-types';
1
2
  import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
2
3
  import { ProtocolRequestType0, ProtocolNotificationType } from './messages';
3
4
  export interface WorkspaceFoldersInitializeParams {
4
5
  /**
5
6
  * The actual configured workspace folders.
6
7
  */
7
- workspaceFolders: WorkspaceFolder[] | null;
8
- }
9
- export interface WorkspaceFoldersClientCapabilities {
10
- /**
11
- * The workspace client capabilities
12
- */
13
- workspace?: {
14
- /**
15
- * The client has support for workspace folders
16
- *
17
- * @since 3.6.0
18
- */
19
- workspaceFolders?: boolean;
20
- };
8
+ workspaceFolders?: WorkspaceFolder[] | null;
21
9
  }
22
10
  export interface WorkspaceFoldersServerCapabilities {
23
11
  /**
24
- * The workspace server capabilities
25
- */
26
- workspace?: {
27
- workspaceFolders?: {
28
- /**
29
- * The Server has support for workspace folders
30
- */
31
- supported?: boolean;
32
- /**
33
- * Whether the server wants to receive workspace folder
34
- * change notifications.
35
- *
36
- * If a strings is provided the string is treated as a ID
37
- * under which the notification is registered on the client
38
- * side. The ID can be used to unregister for these events
39
- * using the `client/unregisterCapability` request.
40
- */
41
- changeNotifications?: string | boolean;
42
- };
43
- };
44
- }
45
- export interface WorkspaceFolder {
46
- /**
47
- * The associated URI for this workspace folder.
12
+ * The Server has support for workspace folders
48
13
  */
49
- uri: string;
14
+ supported?: boolean;
50
15
  /**
51
- * The name of the workspace folder. Used to refer to this
52
- * workspace folder in the user interface.
16
+ * Whether the server wants to receive workspace folder
17
+ * change notifications.
18
+ *
19
+ * If a strings is provided the string is treated as a ID
20
+ * under which the notification is registered on the client
21
+ * side. The ID can be used to unregister for these events
22
+ * using the `client/unregisterCapability` request.
53
23
  */
54
- name: string;
24
+ changeNotifications?: string | boolean;
55
25
  }
56
26
  /**
57
27
  * The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
@@ -21,4 +21,4 @@ var DidChangeWorkspaceFoldersNotification;
21
21
  (function (DidChangeWorkspaceFoldersNotification) {
22
22
  DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType('workspace/didChangeWorkspaceFolders');
23
23
  })(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
24
- //# sourceMappingURL=protocol.workspaceFolders.js.map
24
+ //# sourceMappingURL=protocol.workspaceFolder.js.map
package/lib/node/main.js CHANGED
@@ -5,7 +5,11 @@
5
5
  * ------------------------------------------------------------------------------------------ */
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
8
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
9
13
  }) : (function(o, m, k, k2) {
10
14
  if (k2 === undefined) k2 = k;
11
15
  o[k2] = m[k];