vscode-languageserver-protocol 3.17.0-next.1 → 3.17.0-next.10
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 +1 -1
- package/lib/common/api.d.ts +69 -2
- package/lib/common/api.js +43 -1
- package/lib/common/connection.d.ts +19 -19
- package/lib/common/connection.js +1 -1
- package/lib/common/messages.js +0 -3
- package/lib/common/proposed.diagnostic.d.ts +299 -14
- package/lib/common/proposed.diagnostic.js +65 -7
- package/lib/common/proposed.inlineValue.d.ts +86 -0
- package/lib/common/proposed.inlineValue.js +29 -0
- package/lib/common/proposed.typeHierarchy.d.ts +83 -0
- package/lib/common/proposed.typeHierarchy.js +40 -0
- package/lib/common/protocol.callHierarchy.js +1 -1
- package/lib/common/protocol.configuration.d.ts +4 -3
- package/lib/common/protocol.d.ts +118 -17
- package/lib/common/protocol.declaration.d.ts +1 -1
- package/lib/common/protocol.fileOperations.d.ts +1 -1
- package/lib/common/protocol.implementation.d.ts +1 -1
- package/lib/common/protocol.js +19 -3
- package/lib/common/protocol.semanticTokens.d.ts +26 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/node/main.js +1 -1
- package/package.json +4 -4
|
@@ -1,14 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* --------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
|
|
8
|
+
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
|
+
const Is = require("./utils/is");
|
|
8
10
|
const messages_1 = require("./messages");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @since 3.17.0 - proposed state
|
|
13
|
+
*/
|
|
14
|
+
var DiagnosticServerCancellationData;
|
|
15
|
+
(function (DiagnosticServerCancellationData) {
|
|
16
|
+
function is(value) {
|
|
17
|
+
const candidate = value;
|
|
18
|
+
return candidate && Is.boolean(candidate.retriggerRequest);
|
|
19
|
+
}
|
|
20
|
+
DiagnosticServerCancellationData.is = is;
|
|
21
|
+
})(DiagnosticServerCancellationData = exports.DiagnosticServerCancellationData || (exports.DiagnosticServerCancellationData = {}));
|
|
22
|
+
/**
|
|
23
|
+
* The document diagnostic report kinds.
|
|
24
|
+
*
|
|
25
|
+
* @since 3.17.0 - proposed state
|
|
26
|
+
*/
|
|
27
|
+
var DocumentDiagnosticReportKind;
|
|
28
|
+
(function (DocumentDiagnosticReportKind) {
|
|
29
|
+
/**
|
|
30
|
+
* A diagnostic report with a full
|
|
31
|
+
* set of problems.
|
|
32
|
+
*/
|
|
33
|
+
DocumentDiagnosticReportKind["full"] = "full";
|
|
34
|
+
/**
|
|
35
|
+
* A report indicating that the last
|
|
36
|
+
* returned report is still accurate.
|
|
37
|
+
*/
|
|
38
|
+
DocumentDiagnosticReportKind["unChanged"] = "unChanged";
|
|
39
|
+
})(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
|
|
40
|
+
/**
|
|
41
|
+
* The document diagnostic request definition.
|
|
42
|
+
*
|
|
43
|
+
* @since 3.17.0 - proposed state
|
|
44
|
+
*/
|
|
45
|
+
var DocumentDiagnosticRequest;
|
|
46
|
+
(function (DocumentDiagnosticRequest) {
|
|
47
|
+
DocumentDiagnosticRequest.method = 'textDocument/diagnostic';
|
|
48
|
+
DocumentDiagnosticRequest.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest.method);
|
|
49
|
+
DocumentDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
50
|
+
})(DocumentDiagnosticRequest = exports.DocumentDiagnosticRequest || (exports.DocumentDiagnosticRequest = {}));
|
|
51
|
+
/**
|
|
52
|
+
* The workspace diagnostic request definition.
|
|
53
|
+
*
|
|
54
|
+
* @since 3.17.0 - proposed state
|
|
55
|
+
*/
|
|
56
|
+
var WorkspaceDiagnosticRequest;
|
|
57
|
+
(function (WorkspaceDiagnosticRequest) {
|
|
58
|
+
WorkspaceDiagnosticRequest.method = 'workspace/diagnostic';
|
|
59
|
+
WorkspaceDiagnosticRequest.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest.method);
|
|
60
|
+
WorkspaceDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
61
|
+
})(WorkspaceDiagnosticRequest = exports.WorkspaceDiagnosticRequest || (exports.WorkspaceDiagnosticRequest = {}));
|
|
62
|
+
/**
|
|
63
|
+
* The diagnostic refresh request definition.
|
|
64
|
+
*
|
|
65
|
+
* @since 3.17.0 - proposed state
|
|
66
|
+
*/
|
|
67
|
+
var DiagnosticRefreshRequest;
|
|
68
|
+
(function (DiagnosticRefreshRequest) {
|
|
69
|
+
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
|
70
|
+
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
|
71
|
+
})(DiagnosticRefreshRequest = exports.DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = {}));
|
|
14
72
|
//# sourceMappingURL=proposed.diagnostic.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { TextDocumentIdentifier, Range, InlineValue, InlineValuesContext } from 'vscode-languageserver-types';
|
|
2
|
+
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
3
|
+
import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Client capabilities specific to inline values.
|
|
7
|
+
*
|
|
8
|
+
* @since 3.17.0 - proposed state
|
|
9
|
+
*/
|
|
10
|
+
export interface InlineValuesClientCapabilities {
|
|
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 - proposed state
|
|
20
|
+
*/
|
|
21
|
+
export interface InlineValuesWorkspaceClientCapabilities {
|
|
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 detect a project wide
|
|
29
|
+
* change that requires such a calculation.
|
|
30
|
+
*/
|
|
31
|
+
refreshSupport?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Inline values options used during static registration.
|
|
35
|
+
*
|
|
36
|
+
* @since 3.17.0 - proposed state
|
|
37
|
+
*/
|
|
38
|
+
export interface InlineValuesOptions extends WorkDoneProgressOptions {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Inline value options used during static or dynamic registration.
|
|
42
|
+
*
|
|
43
|
+
* @since 3.17.0 - proposed state
|
|
44
|
+
*/
|
|
45
|
+
export interface InlineValuesRegistrationOptions extends InlineValuesOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions {
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A parameter literal used in inline values requests.
|
|
49
|
+
*
|
|
50
|
+
* @since 3.17.0 - proposed state
|
|
51
|
+
*/
|
|
52
|
+
export interface InlineValuesParams extends WorkDoneProgressParams {
|
|
53
|
+
/**
|
|
54
|
+
* The text document.
|
|
55
|
+
*/
|
|
56
|
+
textDocument: TextDocumentIdentifier;
|
|
57
|
+
/**
|
|
58
|
+
* The visible document range for which inline values should be computed.
|
|
59
|
+
*/
|
|
60
|
+
viewPort: Range;
|
|
61
|
+
/**
|
|
62
|
+
* Additional information about the context in which inline values were
|
|
63
|
+
* requested.
|
|
64
|
+
*/
|
|
65
|
+
context: InlineValuesContext;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A request to provide inline values in a document. The request's parameter is of
|
|
69
|
+
* type [InlineValuesParams](#InlineValuesParams), the response is of type
|
|
70
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
71
|
+
*
|
|
72
|
+
* @since 3.17.0 - proposed state
|
|
73
|
+
*/
|
|
74
|
+
export declare namespace InlineValuesRequest {
|
|
75
|
+
const method: 'textDocument/inlineValues';
|
|
76
|
+
const type: ProtocolRequestType<InlineValuesParams, InlineValue[] | null, InlineValue[], any, InlineValuesRegistrationOptions>;
|
|
77
|
+
type HandlerSignature = RequestHandler<InlineValuesParams, InlineValue[] | null, void>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @since 3.17.0 - proposed state
|
|
81
|
+
*/
|
|
82
|
+
export declare namespace InlineValuesRefreshRequest {
|
|
83
|
+
const method: `workspace/inlineValues/refresh`;
|
|
84
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
85
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.InlineValuesRefreshRequest = exports.InlineValuesRequest = 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 [InlineValuesParams](#InlineValuesParams), the response is of type
|
|
12
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
13
|
+
*
|
|
14
|
+
* @since 3.17.0 - proposed state
|
|
15
|
+
*/
|
|
16
|
+
var InlineValuesRequest;
|
|
17
|
+
(function (InlineValuesRequest) {
|
|
18
|
+
InlineValuesRequest.method = 'textDocument/inlineValues';
|
|
19
|
+
InlineValuesRequest.type = new messages_1.ProtocolRequestType(InlineValuesRequest.method);
|
|
20
|
+
})(InlineValuesRequest = exports.InlineValuesRequest || (exports.InlineValuesRequest = {}));
|
|
21
|
+
/**
|
|
22
|
+
* @since 3.17.0 - proposed state
|
|
23
|
+
*/
|
|
24
|
+
var InlineValuesRefreshRequest;
|
|
25
|
+
(function (InlineValuesRefreshRequest) {
|
|
26
|
+
InlineValuesRefreshRequest.method = `workspace/inlineValues/refresh`;
|
|
27
|
+
InlineValuesRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValuesRefreshRequest.method);
|
|
28
|
+
})(InlineValuesRefreshRequest = exports.InlineValuesRefreshRequest || (exports.InlineValuesRefreshRequest = {}));
|
|
29
|
+
//# sourceMappingURL=proposed.inlineValue.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { TypeHierarchyItem } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType } from './messages';
|
|
4
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* @since 3.17.0 - proposed state
|
|
7
|
+
*/
|
|
8
|
+
export interface 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 - proposed state
|
|
20
|
+
*/
|
|
21
|
+
export interface TypeHierarchyOptions extends WorkDoneProgressOptions {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Type hierarchy options used during static or dynamic registration.
|
|
25
|
+
*
|
|
26
|
+
* @since 3.17.0 - proposed state
|
|
27
|
+
*/
|
|
28
|
+
export interface TypeHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, TypeHierarchyOptions, StaticRegistrationOptions {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The parameter of a `textDocument/prepareTypeHierarchy` request.
|
|
32
|
+
*
|
|
33
|
+
* @since 3.17.0 - proposed state
|
|
34
|
+
*/
|
|
35
|
+
export interface TypeHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
39
|
+
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
40
|
+
*
|
|
41
|
+
* @since 3.17.0 - proposed state
|
|
42
|
+
*/
|
|
43
|
+
export declare namespace TypeHierarchyPrepareRequest {
|
|
44
|
+
const method: 'textDocument/prepareTypeHierarchy';
|
|
45
|
+
const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
|
|
46
|
+
type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The parameter of a `typeHierarchy/supertypes` request.
|
|
50
|
+
*
|
|
51
|
+
* @since 3.17.0 - proposed state
|
|
52
|
+
*/
|
|
53
|
+
export interface TypeHierarchySupertypesParams extends WorkDoneProgressParams, PartialResultParams {
|
|
54
|
+
item: TypeHierarchyItem;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
58
|
+
*
|
|
59
|
+
* @since 3.17.0 - proposed state
|
|
60
|
+
*/
|
|
61
|
+
export declare namespace TypeHierarchySupertypesRequest {
|
|
62
|
+
const method: 'typeHierarchy/supertypes';
|
|
63
|
+
const type: ProtocolRequestType<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
|
64
|
+
type HandlerSignature = RequestHandler<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, void>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The parameter of a `typeHierarchy/subtypes` request.
|
|
68
|
+
*
|
|
69
|
+
* @since 3.17.0 - proposed state
|
|
70
|
+
*/
|
|
71
|
+
export interface TypeHierarchySubtypesParams extends WorkDoneProgressParams, PartialResultParams {
|
|
72
|
+
item: TypeHierarchyItem;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
76
|
+
*
|
|
77
|
+
* @since 3.17.0 - proposed state
|
|
78
|
+
*/
|
|
79
|
+
export declare namespace TypeHierarchySubtypesRequest {
|
|
80
|
+
const method: 'typeHierarchy/subtypes';
|
|
81
|
+
const type: ProtocolRequestType<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
|
82
|
+
type HandlerSignature = RequestHandler<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, void>;
|
|
83
|
+
}
|
|
@@ -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 - proposed state
|
|
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 - proposed state
|
|
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 - proposed state
|
|
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=proposed.typeHierarchy.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* --------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) TypeFox and others. All rights reserved.
|
|
3
|
+
* Copyright (c) TypeFox, Microsoft and others. All rights reserved.
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
|
+
import { LSPAny } from 'vscode-languageserver-types';
|
|
2
3
|
import { ProtocolRequestType } from './messages';
|
|
3
4
|
import { PartialResultParams } from './protocol';
|
|
4
5
|
export interface ConfigurationClientCapabilities {
|
|
@@ -24,9 +25,9 @@ export interface ConfigurationClientCapabilities {
|
|
|
24
25
|
* change event and empty the cache if such an event is received.
|
|
25
26
|
*/
|
|
26
27
|
export declare namespace ConfigurationRequest {
|
|
27
|
-
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams,
|
|
28
|
-
type HandlerSignature = RequestHandler<ConfigurationParams,
|
|
29
|
-
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<
|
|
28
|
+
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams, LSPAny[], never, void, void>;
|
|
29
|
+
type HandlerSignature = RequestHandler<ConfigurationParams, LSPAny[], void>;
|
|
30
|
+
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<LSPAny[], void>;
|
|
30
31
|
}
|
|
31
32
|
export interface ConfigurationItem {
|
|
32
33
|
/**
|
package/lib/common/protocol.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProgressToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
|
-
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode } from 'vscode-languageserver-types';
|
|
3
|
+
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol } from 'vscode-languageserver-types';
|
|
4
4
|
import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions, ImplementationParams } from './protocol.implementation';
|
|
5
5
|
import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions, TypeDefinitionParams } from './protocol.typeDefinition';
|
|
6
6
|
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersClientCapabilities, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolders';
|
|
@@ -16,6 +16,8 @@ import { ShowDocumentParams, ShowDocumentResult, ShowDocumentRequest, ShowDocume
|
|
|
16
16
|
import { LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest } from './protocol.linkedEditingRange';
|
|
17
17
|
import { FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest } from './protocol.fileOperations';
|
|
18
18
|
import { UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest } from './protocol.moniker';
|
|
19
|
+
import { TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions } from './proposed.typeHierarchy';
|
|
20
|
+
import { InlineValuesClientCapabilities, InlineValuesOptions, InlineValuesRegistrationOptions, InlineValuesWorkspaceClientCapabilities } from './proposed.inlineValue';
|
|
19
21
|
/**
|
|
20
22
|
* A document filter denotes a document by different properties like
|
|
21
23
|
* the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
|
|
@@ -25,7 +27,7 @@ import { UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, Monik
|
|
|
25
27
|
* - `*` to match one or more characters in a path segment
|
|
26
28
|
* - `?` to match on one character in a path segment
|
|
27
29
|
* - `**` to match any number of path segments, including none
|
|
28
|
-
* - `{}` to group
|
|
30
|
+
* - `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
|
|
29
31
|
* - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
|
|
30
32
|
* - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
|
|
31
33
|
*
|
|
@@ -92,7 +94,7 @@ export interface Registration {
|
|
|
92
94
|
/**
|
|
93
95
|
* Options necessary for the registration.
|
|
94
96
|
*/
|
|
95
|
-
registerOptions?:
|
|
97
|
+
registerOptions?: LSPAny;
|
|
96
98
|
}
|
|
97
99
|
export interface RegistrationParams {
|
|
98
100
|
registrations: Registration[];
|
|
@@ -247,6 +249,13 @@ export interface WorkspaceClientCapabilities {
|
|
|
247
249
|
* Since 3.16.0
|
|
248
250
|
*/
|
|
249
251
|
fileOperations?: FileOperationClientCapabilities;
|
|
252
|
+
/**
|
|
253
|
+
* Capabilities specific to the inline values requests scoped to the
|
|
254
|
+
* workspace.
|
|
255
|
+
*
|
|
256
|
+
* @since 3.17.0.
|
|
257
|
+
*/
|
|
258
|
+
inlineValues?: InlineValuesWorkspaceClientCapabilities;
|
|
250
259
|
}
|
|
251
260
|
/**
|
|
252
261
|
* Text document specific client capabilities.
|
|
@@ -374,6 +383,18 @@ export interface TextDocumentClientCapabilities {
|
|
|
374
383
|
* @since 3.16.0
|
|
375
384
|
*/
|
|
376
385
|
moniker?: MonikerClientCapabilities;
|
|
386
|
+
/**
|
|
387
|
+
* Capabilities specific to the various type hierarchy requests.
|
|
388
|
+
*
|
|
389
|
+
* @since 3.17.0 - proposed state
|
|
390
|
+
*/
|
|
391
|
+
typeHierarchy?: TypeHierarchyClientCapabilities;
|
|
392
|
+
/**
|
|
393
|
+
* Capabilities specific to the `textDocument/inlineValues` request.
|
|
394
|
+
*
|
|
395
|
+
* @since 3.17.0 - proposed state
|
|
396
|
+
*/
|
|
397
|
+
inlineValues?: InlineValuesClientCapabilities;
|
|
377
398
|
}
|
|
378
399
|
export interface WindowClientCapabilities {
|
|
379
400
|
/**
|
|
@@ -426,6 +447,13 @@ export interface MarkdownClientCapabilities {
|
|
|
426
447
|
* The version of the parser.
|
|
427
448
|
*/
|
|
428
449
|
version?: string;
|
|
450
|
+
/**
|
|
451
|
+
* A list of HTML tags that the client allows / supports in
|
|
452
|
+
* Markdown.
|
|
453
|
+
*
|
|
454
|
+
* @since 3.17.0
|
|
455
|
+
*/
|
|
456
|
+
allowedTags?: string[];
|
|
429
457
|
}
|
|
430
458
|
/**
|
|
431
459
|
* General client capabilities.
|
|
@@ -449,7 +477,7 @@ export interface GeneralClientCapabilities {
|
|
|
449
477
|
/**
|
|
450
478
|
* The list of requests for which the client
|
|
451
479
|
* will retry the request if it receives a
|
|
452
|
-
* response with error code `ContentModified
|
|
480
|
+
* response with error code `ContentModified`
|
|
453
481
|
*/
|
|
454
482
|
retryOnContentModified: string[];
|
|
455
483
|
};
|
|
@@ -690,6 +718,18 @@ export interface _ServerCapabilities<T = any> {
|
|
|
690
718
|
* @since 3.16.0
|
|
691
719
|
*/
|
|
692
720
|
monikerProvider?: boolean | MonikerOptions | MonikerRegistrationOptions;
|
|
721
|
+
/**
|
|
722
|
+
* The server provides type hierarchy support.
|
|
723
|
+
*
|
|
724
|
+
* @since 3.17.0 - proposed state
|
|
725
|
+
*/
|
|
726
|
+
typeHierarchyProvider?: boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions;
|
|
727
|
+
/**
|
|
728
|
+
* The server provides inline values.
|
|
729
|
+
*
|
|
730
|
+
* @since 3.17.0 - proposed state
|
|
731
|
+
*/
|
|
732
|
+
inlineValuesProvider?: boolean | InlineValuesOptions | InlineValuesOptions | InlineValuesRegistrationOptions;
|
|
693
733
|
/**
|
|
694
734
|
* Experimental server capabilities.
|
|
695
735
|
*/
|
|
@@ -763,11 +803,11 @@ export interface _InitializeParams extends WorkDoneProgressParams {
|
|
|
763
803
|
/**
|
|
764
804
|
* User provided initialization options.
|
|
765
805
|
*/
|
|
766
|
-
initializationOptions?:
|
|
806
|
+
initializationOptions?: LSPAny;
|
|
767
807
|
/**
|
|
768
808
|
* The initial trace setting. If omitted trace is disabled ('off').
|
|
769
809
|
*/
|
|
770
|
-
trace?: 'off' | 'messages' | 'verbose';
|
|
810
|
+
trace?: 'off' | 'messages' | 'compact' | 'verbose';
|
|
771
811
|
}
|
|
772
812
|
export declare type InitializeParams = _InitializeParams & WorkspaceFoldersInitializeParams;
|
|
773
813
|
/**
|
|
@@ -796,7 +836,7 @@ export interface InitializeResult<T = any> {
|
|
|
796
836
|
/**
|
|
797
837
|
* Custom initialization results.
|
|
798
838
|
*/
|
|
799
|
-
[custom: string]:
|
|
839
|
+
[custom: string]: LSPAny | ServerCapabilities<T> | undefined; /** undefined is needed since serverInfo is optional */
|
|
800
840
|
}
|
|
801
841
|
/**
|
|
802
842
|
* Known error codes for an `InitializeError`;
|
|
@@ -872,7 +912,7 @@ export interface DidChangeConfigurationParams {
|
|
|
872
912
|
/**
|
|
873
913
|
* The actual changed settings
|
|
874
914
|
*/
|
|
875
|
-
settings:
|
|
915
|
+
settings: LSPAny;
|
|
876
916
|
}
|
|
877
917
|
/**
|
|
878
918
|
* The message type
|
|
@@ -1544,7 +1584,7 @@ export interface CompletionClientCapabilities {
|
|
|
1544
1584
|
* when accepting a completion item that uses multi line
|
|
1545
1585
|
* text in either `insertText` or `textEdit`.
|
|
1546
1586
|
*
|
|
1547
|
-
* @since 3.
|
|
1587
|
+
* @since 3.17.0 - proposed state
|
|
1548
1588
|
*/
|
|
1549
1589
|
insertTextMode?: InsertTextMode;
|
|
1550
1590
|
/**
|
|
@@ -1552,6 +1592,25 @@ export interface CompletionClientCapabilities {
|
|
|
1552
1592
|
* `textDocument/completion` request.
|
|
1553
1593
|
*/
|
|
1554
1594
|
contextSupport?: boolean;
|
|
1595
|
+
/**
|
|
1596
|
+
* The client supports the following `CompletionList` specific
|
|
1597
|
+
* capabilities.
|
|
1598
|
+
*
|
|
1599
|
+
* @since 3.17.0 - proposed state
|
|
1600
|
+
*/
|
|
1601
|
+
completionList?: {
|
|
1602
|
+
/**
|
|
1603
|
+
* The client supports the the following itemDefaults on
|
|
1604
|
+
* a completion list.
|
|
1605
|
+
*
|
|
1606
|
+
* The value lists the supported property names of the
|
|
1607
|
+
* `CompletionList.itemDefaults` object. If omitted
|
|
1608
|
+
* no properties are supported.
|
|
1609
|
+
*
|
|
1610
|
+
* @since 3.17.0 - proposed state
|
|
1611
|
+
*/
|
|
1612
|
+
itemDefaults?: string[];
|
|
1613
|
+
};
|
|
1555
1614
|
}
|
|
1556
1615
|
/**
|
|
1557
1616
|
* How a completion was triggered
|
|
@@ -1886,7 +1945,7 @@ export interface DefinitionRegistrationOptions extends TextDocumentRegistrationO
|
|
|
1886
1945
|
*/
|
|
1887
1946
|
export declare namespace DefinitionRequest {
|
|
1888
1947
|
const method: 'textDocument/definition';
|
|
1889
|
-
const type: ProtocolRequestType<DefinitionParams,
|
|
1948
|
+
const type: ProtocolRequestType<DefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, DefinitionRegistrationOptions>;
|
|
1890
1949
|
}
|
|
1891
1950
|
/**
|
|
1892
1951
|
* Client Capabilities for a [ReferencesRequest](#ReferencesRequest).
|
|
@@ -2208,6 +2267,20 @@ export interface WorkspaceSymbolClientCapabilities {
|
|
|
2208
2267
|
*/
|
|
2209
2268
|
valueSet: SymbolTag[];
|
|
2210
2269
|
};
|
|
2270
|
+
/**
|
|
2271
|
+
* The client support partial workspace symbols. The client will send the
|
|
2272
|
+
* request `workspaceSymbol/resolve` to the server to resolve additional
|
|
2273
|
+
* properties.
|
|
2274
|
+
*
|
|
2275
|
+
* @since 3.17.0 - proposedState
|
|
2276
|
+
*/
|
|
2277
|
+
resolveSupport?: {
|
|
2278
|
+
/**
|
|
2279
|
+
* The properties that a client can resolve lazily. Usually
|
|
2280
|
+
* `location.range`
|
|
2281
|
+
*/
|
|
2282
|
+
properties: string[];
|
|
2283
|
+
};
|
|
2211
2284
|
}
|
|
2212
2285
|
/**
|
|
2213
2286
|
* The parameters of a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
@@ -2223,6 +2296,13 @@ export interface WorkspaceSymbolParams extends WorkDoneProgressParams, PartialRe
|
|
|
2223
2296
|
* Server capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
2224
2297
|
*/
|
|
2225
2298
|
export interface WorkspaceSymbolOptions extends WorkDoneProgressOptions {
|
|
2299
|
+
/**
|
|
2300
|
+
* The server provides support to resolve additional
|
|
2301
|
+
* information for a workspace symbol.
|
|
2302
|
+
*
|
|
2303
|
+
* @since 3.17.0 - proposed state
|
|
2304
|
+
*/
|
|
2305
|
+
resolveProvider?: boolean;
|
|
2226
2306
|
}
|
|
2227
2307
|
/**
|
|
2228
2308
|
* Registration options for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
@@ -2234,10 +2314,25 @@ export interface WorkspaceSymbolRegistrationOptions extends WorkspaceSymbolOptio
|
|
|
2234
2314
|
* by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
|
|
2235
2315
|
* of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
|
|
2236
2316
|
* resolves to such.
|
|
2317
|
+
*
|
|
2318
|
+
* @since 3.17.0 - support for WorkspaceSymbol in the returned data. Clients
|
|
2319
|
+
* need to advertise support for WorkspaceSymbols via the client capability
|
|
2320
|
+
* `workspace.symbol.resolveSupport`.
|
|
2321
|
+
*
|
|
2237
2322
|
*/
|
|
2238
2323
|
export declare namespace WorkspaceSymbolRequest {
|
|
2239
2324
|
const method: 'workspace/symbol';
|
|
2240
|
-
const type: ProtocolRequestType<WorkspaceSymbolParams, SymbolInformation[] | null, SymbolInformation[], void, WorkspaceSymbolRegistrationOptions>;
|
|
2325
|
+
const type: ProtocolRequestType<WorkspaceSymbolParams, SymbolInformation[] | WorkspaceSymbol[] | null, SymbolInformation[] | WorkspaceSymbol[], void, WorkspaceSymbolRegistrationOptions>;
|
|
2326
|
+
}
|
|
2327
|
+
/**
|
|
2328
|
+
* A request to resolve the range inside the workspace
|
|
2329
|
+
* symbol's location.
|
|
2330
|
+
*
|
|
2331
|
+
* @since 3.17.0 - proposed state
|
|
2332
|
+
*/
|
|
2333
|
+
export declare namespace WorkspaceSymbolResolveRequest {
|
|
2334
|
+
const method: 'workspaceSymbol/resolve';
|
|
2335
|
+
const type: ProtocolRequestType<WorkspaceSymbol, WorkspaceSymbol, never, void, void>;
|
|
2241
2336
|
}
|
|
2242
2337
|
/**
|
|
2243
2338
|
* The client capabilities of a [CodeLensRequest](#CodeLensRequest).
|
|
@@ -2618,7 +2713,7 @@ export interface ExecuteCommandParams extends WorkDoneProgressParams {
|
|
|
2618
2713
|
/**
|
|
2619
2714
|
* Arguments that the command should be invoked with.
|
|
2620
2715
|
*/
|
|
2621
|
-
arguments?:
|
|
2716
|
+
arguments?: LSPAny[];
|
|
2622
2717
|
}
|
|
2623
2718
|
/**
|
|
2624
2719
|
* The server capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
|
@@ -2639,7 +2734,7 @@ export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions
|
|
|
2639
2734
|
* a workspace edit which the client will apply to the workspace.
|
|
2640
2735
|
*/
|
|
2641
2736
|
export declare namespace ExecuteCommandRequest {
|
|
2642
|
-
const type: ProtocolRequestType<ExecuteCommandParams,
|
|
2737
|
+
const type: ProtocolRequestType<ExecuteCommandParams, LSPAny, never, void, ExecuteCommandRegistrationOptions>;
|
|
2643
2738
|
}
|
|
2644
2739
|
export interface WorkspaceEditClientCapabilities {
|
|
2645
2740
|
/**
|
|
@@ -2701,9 +2796,11 @@ export interface ApplyWorkspaceEditParams {
|
|
|
2701
2796
|
edit: WorkspaceEdit;
|
|
2702
2797
|
}
|
|
2703
2798
|
/**
|
|
2704
|
-
*
|
|
2799
|
+
* The result returned from the apply workspace edit request.
|
|
2800
|
+
*
|
|
2801
|
+
* @since 3.17 renamed from ApplyWorkspaceEditResponse
|
|
2705
2802
|
*/
|
|
2706
|
-
export interface
|
|
2803
|
+
export interface ApplyWorkspaceEditResult {
|
|
2707
2804
|
/**
|
|
2708
2805
|
* Indicates whether the edit was applied or not.
|
|
2709
2806
|
*/
|
|
@@ -2721,11 +2818,15 @@ export interface ApplyWorkspaceEditResponse {
|
|
|
2721
2818
|
*/
|
|
2722
2819
|
failedChange?: uinteger;
|
|
2723
2820
|
}
|
|
2821
|
+
/**
|
|
2822
|
+
* @deprecated Use ApplyWorkspaceEditResult instead.
|
|
2823
|
+
*/
|
|
2824
|
+
export declare type ApplyWorkspaceEditResponse = ApplyWorkspaceEditResult;
|
|
2724
2825
|
/**
|
|
2725
2826
|
* A request sent from the server to the client to modified certain resources.
|
|
2726
2827
|
*/
|
|
2727
2828
|
export declare namespace ApplyWorkspaceEditRequest {
|
|
2728
|
-
const type: ProtocolRequestType<ApplyWorkspaceEditParams,
|
|
2829
|
+
const type: ProtocolRequestType<ApplyWorkspaceEditParams, ApplyWorkspaceEditResult, never, void, void>;
|
|
2729
2830
|
}
|
|
2730
|
-
export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest };
|
|
2831
|
+
export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest, };
|
|
2731
2832
|
export { DocumentColorOptions as ColorProviderOptions, DocumentColorOptions as ColorOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions, DocumentColorRegistrationOptions as ColorRegistrationOptions };
|
|
@@ -32,6 +32,6 @@ export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneP
|
|
|
32
32
|
*/
|
|
33
33
|
export declare namespace DeclarationRequest {
|
|
34
34
|
const method: 'textDocument/declaration';
|
|
35
|
-
const type: ProtocolRequestType<DeclarationParams,
|
|
35
|
+
const type: ProtocolRequestType<DeclarationParams, Declaration | LocationLink[] | null, Location[] | LocationLink[], void, DeclarationRegistrationOptions>;
|
|
36
36
|
type HandlerSignature = RequestHandler<DeclarationParams, Declaration | DeclarationLink[] | null, void>;
|
|
37
37
|
}
|