vscode-languageserver-protocol 3.17.0-next.8 → 3.17.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.
- package/lib/browser/main.js +6 -2
- package/lib/common/api.d.ts +10 -27
- package/lib/common/api.js +15 -11
- package/lib/common/connection.d.ts +27 -3
- package/lib/common/connection.js +1 -1
- package/lib/common/messages.js +0 -3
- package/lib/common/protocol.$.d.ts +1 -0
- package/lib/common/protocol.$.js +36 -0
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +4 -16
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +453 -69
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +85 -71
- package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +8 -8
- package/lib/common/protocol.foldingRange.d.ts +40 -27
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +2 -2
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +107 -0
- package/lib/common/protocol.inlayHint.js +41 -0
- package/lib/common/protocol.inlineValue.d.ts +84 -0
- package/lib/common/protocol.inlineValue.js +29 -0
- package/lib/common/protocol.js +131 -17
- package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
- package/lib/common/protocol.moniker.d.ts +13 -11
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/protocol.notebook.d.ts +391 -0
- package/lib/common/protocol.notebook.js +206 -0
- package/lib/common/protocol.progress.d.ts +2 -14
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.semanticTokens.d.ts +23 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/protocol.typeHierarchy.d.ts +80 -0
- package/lib/common/protocol.typeHierarchy.js +40 -0
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/lib/node/main.js +6 -2
- package/metaModel.schema.json +705 -0
- 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
|
*/
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { TypeHierarchyItem } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType } from './messages';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* @since 3.17.0
|
|
7
|
+
*/
|
|
8
|
+
export declare type TypeHierarchyClientCapabilities = {
|
|
9
|
+
/**
|
|
10
|
+
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
11
|
+
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
12
|
+
* return value for the corresponding server capability as well.
|
|
13
|
+
*/
|
|
14
|
+
dynamicRegistration?: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Type hierarchy options used during static registration.
|
|
18
|
+
*
|
|
19
|
+
* @since 3.17.0
|
|
20
|
+
*/
|
|
21
|
+
export declare type TypeHierarchyOptions = WorkDoneProgressOptions;
|
|
22
|
+
/**
|
|
23
|
+
* Type hierarchy options used during static or dynamic registration.
|
|
24
|
+
*
|
|
25
|
+
* @since 3.17.0
|
|
26
|
+
*/
|
|
27
|
+
export declare type TypeHierarchyRegistrationOptions = TextDocumentRegistrationOptions & TypeHierarchyOptions & StaticRegistrationOptions;
|
|
28
|
+
/**
|
|
29
|
+
* The parameter of a `textDocument/prepareTypeHierarchy` request.
|
|
30
|
+
*
|
|
31
|
+
* @since 3.17.0
|
|
32
|
+
*/
|
|
33
|
+
export declare type TypeHierarchyPrepareParams = TextDocumentPositionParams & WorkDoneProgressParams;
|
|
34
|
+
/**
|
|
35
|
+
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
36
|
+
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
37
|
+
*
|
|
38
|
+
* @since 3.17.0
|
|
39
|
+
*/
|
|
40
|
+
export declare namespace TypeHierarchyPrepareRequest {
|
|
41
|
+
const method: 'textDocument/prepareTypeHierarchy';
|
|
42
|
+
const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
|
|
43
|
+
type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The parameter of a `typeHierarchy/supertypes` request.
|
|
47
|
+
*
|
|
48
|
+
* @since 3.17.0
|
|
49
|
+
*/
|
|
50
|
+
export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
51
|
+
item: TypeHierarchyItem;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
55
|
+
*
|
|
56
|
+
* @since 3.17.0
|
|
57
|
+
*/
|
|
58
|
+
export declare namespace TypeHierarchySupertypesRequest {
|
|
59
|
+
const method: 'typeHierarchy/supertypes';
|
|
60
|
+
const type: ProtocolRequestType<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
|
61
|
+
type HandlerSignature = RequestHandler<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, void>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The parameter of a `typeHierarchy/subtypes` request.
|
|
65
|
+
*
|
|
66
|
+
* @since 3.17.0
|
|
67
|
+
*/
|
|
68
|
+
export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
69
|
+
item: TypeHierarchyItem;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
73
|
+
*
|
|
74
|
+
* @since 3.17.0
|
|
75
|
+
*/
|
|
76
|
+
export declare namespace TypeHierarchySubtypesRequest {
|
|
77
|
+
const method: 'typeHierarchy/subtypes';
|
|
78
|
+
const type: ProtocolRequestType<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
|
79
|
+
type HandlerSignature = RequestHandler<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, void>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* --------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) TypeFox, Microsoft and others. 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.TypeHierarchySubtypesRequest = exports.TypeHierarchySupertypesRequest = exports.TypeHierarchyPrepareRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
11
|
+
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
12
|
+
*
|
|
13
|
+
* @since 3.17.0
|
|
14
|
+
*/
|
|
15
|
+
var TypeHierarchyPrepareRequest;
|
|
16
|
+
(function (TypeHierarchyPrepareRequest) {
|
|
17
|
+
TypeHierarchyPrepareRequest.method = 'textDocument/prepareTypeHierarchy';
|
|
18
|
+
TypeHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(TypeHierarchyPrepareRequest.method);
|
|
19
|
+
})(TypeHierarchyPrepareRequest = exports.TypeHierarchyPrepareRequest || (exports.TypeHierarchyPrepareRequest = {}));
|
|
20
|
+
/**
|
|
21
|
+
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
22
|
+
*
|
|
23
|
+
* @since 3.17.0
|
|
24
|
+
*/
|
|
25
|
+
var TypeHierarchySupertypesRequest;
|
|
26
|
+
(function (TypeHierarchySupertypesRequest) {
|
|
27
|
+
TypeHierarchySupertypesRequest.method = 'typeHierarchy/supertypes';
|
|
28
|
+
TypeHierarchySupertypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySupertypesRequest.method);
|
|
29
|
+
})(TypeHierarchySupertypesRequest = exports.TypeHierarchySupertypesRequest || (exports.TypeHierarchySupertypesRequest = {}));
|
|
30
|
+
/**
|
|
31
|
+
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
32
|
+
*
|
|
33
|
+
* @since 3.17.0
|
|
34
|
+
*/
|
|
35
|
+
var TypeHierarchySubtypesRequest;
|
|
36
|
+
(function (TypeHierarchySubtypesRequest) {
|
|
37
|
+
TypeHierarchySubtypesRequest.method = 'typeHierarchy/subtypes';
|
|
38
|
+
TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
|
|
39
|
+
})(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
|
|
40
|
+
//# sourceMappingURL=protocol.typeHierarchy.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
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 {
|
|
@@ -6,52 +7,21 @@ export interface WorkspaceFoldersInitializeParams {
|
|
|
6
7
|
*/
|
|
7
8
|
workspaceFolders: WorkspaceFolder[] | null;
|
|
8
9
|
}
|
|
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
|
-
};
|
|
21
|
-
}
|
|
22
10
|
export interface WorkspaceFoldersServerCapabilities {
|
|
23
11
|
/**
|
|
24
|
-
* The workspace
|
|
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
|
-
|
|
14
|
+
supported?: boolean;
|
|
50
15
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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];
|
|
@@ -19,7 +23,7 @@ const node_1 = require("vscode-jsonrpc/node");
|
|
|
19
23
|
__exportStar(require("vscode-jsonrpc/node"), exports);
|
|
20
24
|
__exportStar(require("../common/api"), exports);
|
|
21
25
|
function createProtocolConnection(input, output, logger, options) {
|
|
22
|
-
return node_1.createMessageConnection(input, output, logger, options);
|
|
26
|
+
return (0, node_1.createMessageConnection)(input, output, logger, options);
|
|
23
27
|
}
|
|
24
28
|
exports.createProtocolConnection = createProtocolConnection;
|
|
25
29
|
//# sourceMappingURL=main.js.map
|