vscode-languageserver-protocol 3.17.0-next.14 → 3.17.0-next.17
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/common/api.d.ts +1 -22
- package/lib/common/api.js +1 -10
- package/lib/common/connection.d.ts +26 -2
- package/lib/common/proposed.diagnostic.d.ts +93 -68
- package/lib/common/proposed.diagnostic.js +12 -7
- package/lib/common/{proposed.notebooks.d.ts → proposed.notebook.d.ts} +81 -114
- package/lib/common/{proposed.notebooks.js → proposed.notebook.js} +28 -56
- 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 +1 -14
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +266 -102
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/protocol.foldingRange.d.ts +2 -19
- 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 +115 -0
- package/lib/common/protocol.inlayHint.js +44 -0
- package/lib/common/protocol.inlineValue.d.ts +91 -0
- package/lib/common/protocol.inlineValue.js +31 -0
- package/lib/common/protocol.js +71 -15
- 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.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 +1 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +28 -22
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +7 -4
- 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/metaModel.schema.json +686 -0
- package/package.json +3 -3
- package/lib/common/proposed.inlineValue.d.ts +0 -86
- package/lib/common/proposed.inlineValue.js +0 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Declaration, DeclarationLink, Location, LocationLink } 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.14.0
|
|
7
7
|
*/
|
|
@@ -25,7 +25,7 @@ export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneP
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
28
|
-
* document position. The request's parameter is of type [
|
|
28
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
29
29
|
* (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
|
|
30
30
|
* or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
|
|
31
31
|
* to such.
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.DeclarationRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
// @ts-ignore: to avoid inlining
|
|
9
|
+
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
10
10
|
let __noDynamicImport;
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
13
|
-
* document position. The request's parameter is of type [
|
|
13
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
14
|
* (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
|
|
15
15
|
* or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
|
|
16
16
|
* to such.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, uinteger, FoldingRange } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
export interface FoldingRangeClientCapabilities {
|
|
6
6
|
/**
|
|
7
7
|
* Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
|
|
@@ -24,23 +24,6 @@ export interface FoldingRangeOptions extends WorkDoneProgressOptions {
|
|
|
24
24
|
}
|
|
25
25
|
export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Enum of known range kinds
|
|
29
|
-
*/
|
|
30
|
-
export declare enum FoldingRangeKind {
|
|
31
|
-
/**
|
|
32
|
-
* Folding range for a comment
|
|
33
|
-
*/
|
|
34
|
-
Comment = "comment",
|
|
35
|
-
/**
|
|
36
|
-
* Folding range for a imports or includes
|
|
37
|
-
*/
|
|
38
|
-
Imports = "imports",
|
|
39
|
-
/**
|
|
40
|
-
* Folding range for a region (e.g. `#region`)
|
|
41
|
-
*/
|
|
42
|
-
Region = "region"
|
|
43
|
-
}
|
|
44
27
|
/**
|
|
45
28
|
* Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
|
|
46
29
|
*/
|
|
@@ -58,6 +41,6 @@ export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResul
|
|
|
58
41
|
*/
|
|
59
42
|
export declare namespace FoldingRangeRequest {
|
|
60
43
|
const method: 'textDocument/foldingRange';
|
|
61
|
-
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[],
|
|
44
|
+
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
|
|
62
45
|
type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
|
|
63
46
|
}
|
|
@@ -4,26 +4,8 @@
|
|
|
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.FoldingRangeRequest =
|
|
7
|
+
exports.FoldingRangeRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
/**
|
|
10
|
-
* Enum of known range kinds
|
|
11
|
-
*/
|
|
12
|
-
var FoldingRangeKind;
|
|
13
|
-
(function (FoldingRangeKind) {
|
|
14
|
-
/**
|
|
15
|
-
* Folding range for a comment
|
|
16
|
-
*/
|
|
17
|
-
FoldingRangeKind["Comment"] = "comment";
|
|
18
|
-
/**
|
|
19
|
-
* Folding range for a imports or includes
|
|
20
|
-
*/
|
|
21
|
-
FoldingRangeKind["Imports"] = "imports";
|
|
22
|
-
/**
|
|
23
|
-
* Folding range for a region (e.g. `#region`)
|
|
24
|
-
*/
|
|
25
|
-
FoldingRangeKind["Region"] = "region";
|
|
26
|
-
})(FoldingRangeKind = exports.FoldingRangeKind || (exports.FoldingRangeKind = {}));
|
|
27
9
|
/**
|
|
28
10
|
* A request to provide folding ranges in a document. The request's
|
|
29
11
|
* parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, Location, LocationLink } 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
|
*/
|
|
@@ -27,7 +27,7 @@ export interface ImplementationParams extends TextDocumentPositionParams, WorkDo
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* A request to resolve the implementation locations of a symbol at a given text
|
|
30
|
-
* document position. The request's parameter is of type [
|
|
30
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
31
31
|
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
32
32
|
* Thenable that resolves to such.
|
|
33
33
|
*/
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.ImplementationRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
// @ts-ignore: to avoid inlining
|
|
9
|
+
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
10
10
|
let __noDynamicImport;
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the implementation locations of a symbol at a given text
|
|
13
|
-
* document position. The request's parameter is of type [
|
|
13
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
14
|
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
15
15
|
* Thenable that resolves to such.
|
|
16
16
|
*/
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
2
|
+
import { Range, TextDocumentIdentifier, InlayHint } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import type { StaticRegistrationOptions, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Inlay hint client capabilities
|
|
7
|
+
*
|
|
8
|
+
* @since 3.17.0
|
|
9
|
+
* @proposed
|
|
10
|
+
*/
|
|
11
|
+
export declare type InlayHintClientCapabilities = {
|
|
12
|
+
/**
|
|
13
|
+
* Whether inlay hints support dynamic registration.
|
|
14
|
+
*/
|
|
15
|
+
dynamicRegistration?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates which properties a client can resolve lazily on a inlay
|
|
18
|
+
* hint.
|
|
19
|
+
*/
|
|
20
|
+
resolveSupport?: {
|
|
21
|
+
/**
|
|
22
|
+
* The properties that a client can resolve lazily.
|
|
23
|
+
*/
|
|
24
|
+
properties: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Client workspace capabilities specific to inlay hints.
|
|
29
|
+
*
|
|
30
|
+
* @since 3.17.0
|
|
31
|
+
* @proposed
|
|
32
|
+
*/
|
|
33
|
+
export declare type InlayHintWorkspaceClientCapabilities = {
|
|
34
|
+
/**
|
|
35
|
+
* Whether the client implementation supports a refresh request sent from
|
|
36
|
+
* the server to the client.
|
|
37
|
+
*
|
|
38
|
+
* Note that this event is global and will force the client to refresh all
|
|
39
|
+
* inlay hints currently shown. It should be used with absolute care and
|
|
40
|
+
* is useful for situation where a server for example detects a project wide
|
|
41
|
+
* change that requires such a calculation.
|
|
42
|
+
*/
|
|
43
|
+
refreshSupport?: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Inlay hint options used during static registration.
|
|
47
|
+
*
|
|
48
|
+
* @since 3.17.0
|
|
49
|
+
* @proposed
|
|
50
|
+
*/
|
|
51
|
+
export declare type InlayHintOptions = WorkDoneProgressOptions & {
|
|
52
|
+
/**
|
|
53
|
+
* The server provides support to resolve additional
|
|
54
|
+
* information for an inlay hint item.
|
|
55
|
+
*/
|
|
56
|
+
resolveProvider?: boolean;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Inlay hint options used during static or dynamic registration.
|
|
60
|
+
*
|
|
61
|
+
* @since 3.17.0
|
|
62
|
+
* @proposed
|
|
63
|
+
*/
|
|
64
|
+
export declare type InlayHintRegistrationOptions = InlayHintOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
65
|
+
/**
|
|
66
|
+
* A parameter literal used in inlay hints requests.
|
|
67
|
+
*
|
|
68
|
+
* @since 3.17.0
|
|
69
|
+
* @proposed
|
|
70
|
+
*/
|
|
71
|
+
export declare type InlayHintParams = WorkDoneProgressParams & {
|
|
72
|
+
/**
|
|
73
|
+
* The text document.
|
|
74
|
+
*/
|
|
75
|
+
textDocument: TextDocumentIdentifier;
|
|
76
|
+
/**
|
|
77
|
+
* The document range for which inlay hints should be computed.
|
|
78
|
+
*/
|
|
79
|
+
range: Range;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* A request to provide inlay hints in a document. The request's parameter is of
|
|
83
|
+
* type [InlayHintsParams](#InlayHintsParams), the response is of type
|
|
84
|
+
* [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
|
|
85
|
+
*
|
|
86
|
+
* @since 3.17.0
|
|
87
|
+
* @proposed
|
|
88
|
+
*/
|
|
89
|
+
export declare namespace InlayHintRequest {
|
|
90
|
+
const method: 'textDocument/inlayHint';
|
|
91
|
+
const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
|
|
92
|
+
type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A request to resolve additional properties for a inlay hint.
|
|
96
|
+
* The request's parameter is of type [InlayHint](#InlayHint), the response is
|
|
97
|
+
* of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
|
|
98
|
+
*
|
|
99
|
+
* @since 3.17.0
|
|
100
|
+
* @proposed
|
|
101
|
+
*/
|
|
102
|
+
export declare namespace InlayHintResolveRequest {
|
|
103
|
+
const method: 'inlayHint/resolve';
|
|
104
|
+
const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
|
|
105
|
+
type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @since 3.17.0
|
|
109
|
+
* @proposed
|
|
110
|
+
*/
|
|
111
|
+
export declare namespace InlayHintRefreshRequest {
|
|
112
|
+
const method: `workspace/inlayHint/refresh`;
|
|
113
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
114
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 [InlayHintsParams](#InlayHintsParams), the response is of type
|
|
12
|
+
* [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
|
|
13
|
+
*
|
|
14
|
+
* @since 3.17.0
|
|
15
|
+
* @proposed
|
|
16
|
+
*/
|
|
17
|
+
var InlayHintRequest;
|
|
18
|
+
(function (InlayHintRequest) {
|
|
19
|
+
InlayHintRequest.method = 'textDocument/inlayHint';
|
|
20
|
+
InlayHintRequest.type = new messages_1.ProtocolRequestType(InlayHintRequest.method);
|
|
21
|
+
})(InlayHintRequest = exports.InlayHintRequest || (exports.InlayHintRequest = {}));
|
|
22
|
+
/**
|
|
23
|
+
* A request to resolve additional properties for a inlay hint.
|
|
24
|
+
* The request's parameter is of type [InlayHint](#InlayHint), the response is
|
|
25
|
+
* of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
|
|
26
|
+
*
|
|
27
|
+
* @since 3.17.0
|
|
28
|
+
* @proposed
|
|
29
|
+
*/
|
|
30
|
+
var InlayHintResolveRequest;
|
|
31
|
+
(function (InlayHintResolveRequest) {
|
|
32
|
+
InlayHintResolveRequest.method = 'inlayHint/resolve';
|
|
33
|
+
InlayHintResolveRequest.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest.method);
|
|
34
|
+
})(InlayHintResolveRequest = exports.InlayHintResolveRequest || (exports.InlayHintResolveRequest = {}));
|
|
35
|
+
/**
|
|
36
|
+
* @since 3.17.0
|
|
37
|
+
* @proposed
|
|
38
|
+
*/
|
|
39
|
+
var InlayHintRefreshRequest;
|
|
40
|
+
(function (InlayHintRefreshRequest) {
|
|
41
|
+
InlayHintRefreshRequest.method = `workspace/inlayHint/refresh`;
|
|
42
|
+
InlayHintRefreshRequest.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest.method);
|
|
43
|
+
})(InlayHintRefreshRequest = exports.InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = {}));
|
|
44
|
+
//# sourceMappingURL=protocol.inlayHint.js.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { TextDocumentIdentifier, Range, InlineValue, InlineValueContext } from 'vscode-languageserver-types';
|
|
2
|
+
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
3
|
+
import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Client capabilities specific to inline values.
|
|
7
|
+
*
|
|
8
|
+
* @since 3.17.0
|
|
9
|
+
* @proposed
|
|
10
|
+
*/
|
|
11
|
+
export declare type InlineValueClientCapabilities = {
|
|
12
|
+
/**
|
|
13
|
+
* Whether implementation supports dynamic registration for inline value providers.
|
|
14
|
+
*/
|
|
15
|
+
dynamicRegistration?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Client workspace capabilities specific to inline values.
|
|
19
|
+
*
|
|
20
|
+
* @since 3.17.0
|
|
21
|
+
* @proposed
|
|
22
|
+
*/
|
|
23
|
+
export declare type InlineValueWorkspaceClientCapabilities = {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the client implementation supports a refresh request sent from the
|
|
26
|
+
* server to the client.
|
|
27
|
+
*
|
|
28
|
+
* Note that this event is global and will force the client to refresh all
|
|
29
|
+
* inline values currently shown. It should be used with absolute care and is
|
|
30
|
+
* useful for situation where a server for example detects a project wide
|
|
31
|
+
* change that requires such a calculation.
|
|
32
|
+
*/
|
|
33
|
+
refreshSupport?: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Inline value options used during static registration.
|
|
37
|
+
*
|
|
38
|
+
* @since 3.17.0
|
|
39
|
+
* @proposed
|
|
40
|
+
*/
|
|
41
|
+
export declare type InlineValueOptions = WorkDoneProgressOptions;
|
|
42
|
+
/**
|
|
43
|
+
* Inline value options used during static or dynamic registration.
|
|
44
|
+
*
|
|
45
|
+
* @since 3.17.0
|
|
46
|
+
* @proposed
|
|
47
|
+
*/
|
|
48
|
+
export declare type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
49
|
+
/**
|
|
50
|
+
* A parameter literal used in inline value requests.
|
|
51
|
+
*
|
|
52
|
+
* @since 3.17.0
|
|
53
|
+
* @proposed
|
|
54
|
+
*/
|
|
55
|
+
export declare type InlineValueParams = WorkDoneProgressParams & {
|
|
56
|
+
/**
|
|
57
|
+
* The text document.
|
|
58
|
+
*/
|
|
59
|
+
textDocument: TextDocumentIdentifier;
|
|
60
|
+
/**
|
|
61
|
+
* The document range for which inline values should be computed.
|
|
62
|
+
*/
|
|
63
|
+
range: Range;
|
|
64
|
+
/**
|
|
65
|
+
* Additional information about the context in which inline values were
|
|
66
|
+
* requested.
|
|
67
|
+
*/
|
|
68
|
+
context: InlineValueContext;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* A request to provide inline values in a document. The request's parameter is of
|
|
72
|
+
* type [InlineValueParams](#InlineValueParams), the response is of type
|
|
73
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
74
|
+
*
|
|
75
|
+
* @since 3.17.0
|
|
76
|
+
* @proposed
|
|
77
|
+
*/
|
|
78
|
+
export declare namespace InlineValueRequest {
|
|
79
|
+
const method: 'textDocument/inlineValue';
|
|
80
|
+
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
|
|
81
|
+
type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @since 3.17.0
|
|
85
|
+
* @proposed
|
|
86
|
+
*/
|
|
87
|
+
export declare namespace InlineValueRefreshRequest {
|
|
88
|
+
const method: `workspace/inlineValue/refresh`;
|
|
89
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
90
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 [InlineValueParams](#InlineValueParams), the response is of type
|
|
12
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
13
|
+
*
|
|
14
|
+
* @since 3.17.0
|
|
15
|
+
* @proposed
|
|
16
|
+
*/
|
|
17
|
+
var InlineValueRequest;
|
|
18
|
+
(function (InlineValueRequest) {
|
|
19
|
+
InlineValueRequest.method = 'textDocument/inlineValue';
|
|
20
|
+
InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
|
|
21
|
+
})(InlineValueRequest = exports.InlineValueRequest || (exports.InlineValueRequest = {}));
|
|
22
|
+
/**
|
|
23
|
+
* @since 3.17.0
|
|
24
|
+
* @proposed
|
|
25
|
+
*/
|
|
26
|
+
var InlineValueRefreshRequest;
|
|
27
|
+
(function (InlineValueRefreshRequest) {
|
|
28
|
+
InlineValueRefreshRequest.method = `workspace/inlineValue/refresh`;
|
|
29
|
+
InlineValueRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest.method);
|
|
30
|
+
})(InlineValueRefreshRequest = exports.InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = {}));
|
|
31
|
+
//# sourceMappingURL=protocol.inlineValue.js.map
|
package/lib/common/protocol.js
CHANGED
|
@@ -4,17 +4,19 @@
|
|
|
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.
|
|
8
|
-
exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = void 0;
|
|
7
|
+
exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = exports.CodeActionRequest = exports.DocumentSymbolRequest = exports.DocumentHighlightRequest = exports.ReferencesRequest = exports.DefinitionRequest = exports.SignatureHelpRequest = exports.SignatureHelpTriggerKind = exports.HoverRequest = exports.CompletionResolveRequest = exports.CompletionRequest = exports.CompletionTriggerKind = exports.PublishDiagnosticsNotification = exports.WatchKind = exports.RelativePattern = exports.FileChangeType = exports.DidChangeWatchedFilesNotification = exports.WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentNotification = exports.TextDocumentSaveReason = exports.DidSaveTextDocumentNotification = exports.DidCloseTextDocumentNotification = exports.DidChangeTextDocumentNotification = exports.TextDocumentContentChangeEvent = exports.DidOpenTextDocumentNotification = exports.TextDocumentSyncKind = exports.TelemetryEventNotification = exports.LogMessageNotification = exports.ShowMessageRequest = exports.ShowMessageNotification = exports.MessageType = exports.DidChangeConfigurationNotification = exports.ExitNotification = exports.ShutdownRequest = exports.InitializedNotification = exports.InitializeErrorCodes = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.PositionEncodingKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
|
|
8
|
+
exports.TypeHierarchySubtypesRequest = exports.TypeHierarchyPrepareRequest = exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = void 0;
|
|
9
|
+
exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = void 0;
|
|
9
10
|
const messages_1 = require("./messages");
|
|
11
|
+
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
|
10
12
|
const Is = require("./utils/is");
|
|
11
13
|
const protocol_implementation_1 = require("./protocol.implementation");
|
|
12
14
|
Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
|
|
13
15
|
const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
|
|
14
16
|
Object.defineProperty(exports, "TypeDefinitionRequest", { enumerable: true, get: function () { return protocol_typeDefinition_1.TypeDefinitionRequest; } });
|
|
15
|
-
const
|
|
16
|
-
Object.defineProperty(exports, "WorkspaceFoldersRequest", { enumerable: true, get: function () { return
|
|
17
|
-
Object.defineProperty(exports, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function () { return
|
|
17
|
+
const protocol_workspaceFolder_1 = require("./protocol.workspaceFolder");
|
|
18
|
+
Object.defineProperty(exports, "WorkspaceFoldersRequest", { enumerable: true, get: function () { return protocol_workspaceFolder_1.WorkspaceFoldersRequest; } });
|
|
19
|
+
Object.defineProperty(exports, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function () { return protocol_workspaceFolder_1.DidChangeWorkspaceFoldersNotification; } });
|
|
18
20
|
const protocol_configuration_1 = require("./protocol.configuration");
|
|
19
21
|
Object.defineProperty(exports, "ConfigurationRequest", { enumerable: true, get: function () { return protocol_configuration_1.ConfigurationRequest; } });
|
|
20
22
|
const protocol_colorProvider_1 = require("./protocol.colorProvider");
|
|
@@ -57,13 +59,25 @@ const protocol_moniker_1 = require("./protocol.moniker");
|
|
|
57
59
|
Object.defineProperty(exports, "UniquenessLevel", { enumerable: true, get: function () { return protocol_moniker_1.UniquenessLevel; } });
|
|
58
60
|
Object.defineProperty(exports, "MonikerKind", { enumerable: true, get: function () { return protocol_moniker_1.MonikerKind; } });
|
|
59
61
|
Object.defineProperty(exports, "MonikerRequest", { enumerable: true, get: function () { return protocol_moniker_1.MonikerRequest; } });
|
|
62
|
+
const protocol_typeHierarchy_1 = require("./protocol.typeHierarchy");
|
|
63
|
+
Object.defineProperty(exports, "TypeHierarchyPrepareRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchyPrepareRequest; } });
|
|
64
|
+
Object.defineProperty(exports, "TypeHierarchySubtypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySubtypesRequest; } });
|
|
65
|
+
Object.defineProperty(exports, "TypeHierarchySupertypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySupertypesRequest; } });
|
|
66
|
+
const protocol_inlineValue_1 = require("./protocol.inlineValue");
|
|
67
|
+
Object.defineProperty(exports, "InlineValueRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRequest; } });
|
|
68
|
+
Object.defineProperty(exports, "InlineValueRefreshRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRefreshRequest; } });
|
|
69
|
+
const protocol_inlayHint_1 = require("./protocol.inlayHint");
|
|
70
|
+
Object.defineProperty(exports, "InlayHintRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRequest; } });
|
|
71
|
+
Object.defineProperty(exports, "InlayHintResolveRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintResolveRequest; } });
|
|
72
|
+
Object.defineProperty(exports, "InlayHintRefreshRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRefreshRequest; } });
|
|
60
73
|
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
61
74
|
let __noDynamicImport;
|
|
62
75
|
/**
|
|
63
76
|
* The TextDocumentFilter namespace provides helper functions to work with
|
|
64
77
|
* [TextDocumentFilter](#TextDocumentFilter) literals.
|
|
65
78
|
*
|
|
66
|
-
* @since 3.17.0
|
|
79
|
+
* @since 3.17.0
|
|
80
|
+
* @proposed
|
|
67
81
|
*/
|
|
68
82
|
var TextDocumentFilter;
|
|
69
83
|
(function (TextDocumentFilter) {
|
|
@@ -77,7 +91,8 @@ var TextDocumentFilter;
|
|
|
77
91
|
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
78
92
|
* [NotebookDocumentFilter](#NotebookDocumentFilter) literals.
|
|
79
93
|
*
|
|
80
|
-
* @since 3.17.0
|
|
94
|
+
* @since 3.17.0
|
|
95
|
+
* @proposed
|
|
81
96
|
*/
|
|
82
97
|
var NotebookDocumentFilter;
|
|
83
98
|
(function (NotebookDocumentFilter) {
|
|
@@ -91,13 +106,16 @@ var NotebookDocumentFilter;
|
|
|
91
106
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
92
107
|
* [NotebookCellTextDocumentFilter](#NotebookCellTextDocumentFilter) literals.
|
|
93
108
|
*
|
|
94
|
-
* @since 3.17.0
|
|
109
|
+
* @since 3.17.0
|
|
110
|
+
* @proposed
|
|
95
111
|
*/
|
|
96
112
|
var NotebookCellTextDocumentFilter;
|
|
97
113
|
(function (NotebookCellTextDocumentFilter) {
|
|
98
114
|
function is(value) {
|
|
99
115
|
const candidate = value;
|
|
100
|
-
return Is.objectLiteral(candidate)
|
|
116
|
+
return Is.objectLiteral(candidate)
|
|
117
|
+
&& (Is.string(candidate.notebook) || NotebookDocumentFilter.is(candidate.notebook))
|
|
118
|
+
&& (candidate.language === undefined || Is.string(candidate.language));
|
|
101
119
|
}
|
|
102
120
|
NotebookCellTextDocumentFilter.is = is;
|
|
103
121
|
})(NotebookCellTextDocumentFilter = exports.NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = {}));
|
|
@@ -175,6 +193,34 @@ var FailureHandlingKind;
|
|
|
175
193
|
*/
|
|
176
194
|
FailureHandlingKind.Undo = 'undo';
|
|
177
195
|
})(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
|
|
196
|
+
/**
|
|
197
|
+
* A set of predefined position encoding kinds.
|
|
198
|
+
*
|
|
199
|
+
* @since 3.17.0
|
|
200
|
+
* @proposed
|
|
201
|
+
*/
|
|
202
|
+
var PositionEncodingKind;
|
|
203
|
+
(function (PositionEncodingKind) {
|
|
204
|
+
/**
|
|
205
|
+
* Character offsets count UTF-8 code units.
|
|
206
|
+
*/
|
|
207
|
+
PositionEncodingKind.UTF8 = 'utf-8';
|
|
208
|
+
/**
|
|
209
|
+
* Character offsets count UTF-16 code units.
|
|
210
|
+
*
|
|
211
|
+
* This is the default and must always be supported
|
|
212
|
+
* by servers
|
|
213
|
+
*/
|
|
214
|
+
PositionEncodingKind.UTF16 = 'utf-16';
|
|
215
|
+
/**
|
|
216
|
+
* Character offsets count UTF-32 code units.
|
|
217
|
+
*
|
|
218
|
+
* Implementation note: these are the same as Unicode code points,
|
|
219
|
+
* so this `PositionEncodingKind` may also be used for an
|
|
220
|
+
* encoding-agnostic representation of character offsets.
|
|
221
|
+
*/
|
|
222
|
+
PositionEncodingKind.UTF32 = 'utf-32';
|
|
223
|
+
})(PositionEncodingKind = exports.PositionEncodingKind || (exports.PositionEncodingKind = {}));
|
|
178
224
|
/**
|
|
179
225
|
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
180
226
|
* [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
|
|
@@ -228,17 +274,18 @@ var InitializeRequest;
|
|
|
228
274
|
InitializeRequest.type = new messages_1.ProtocolRequestType('initialize');
|
|
229
275
|
})(InitializeRequest = exports.InitializeRequest || (exports.InitializeRequest = {}));
|
|
230
276
|
/**
|
|
231
|
-
* Known error codes for an `
|
|
277
|
+
* Known error codes for an `InitializeErrorCodes`;
|
|
232
278
|
*/
|
|
233
|
-
var
|
|
234
|
-
(function (
|
|
279
|
+
var InitializeErrorCodes;
|
|
280
|
+
(function (InitializeErrorCodes) {
|
|
235
281
|
/**
|
|
236
282
|
* If the protocol version provided by the client can't be handled by the server.
|
|
283
|
+
*
|
|
237
284
|
* @deprecated This initialize error got replaced by client capabilities. There is
|
|
238
285
|
* no version handshake in version 3.0x
|
|
239
286
|
*/
|
|
240
|
-
|
|
241
|
-
})(
|
|
287
|
+
InitializeErrorCodes.unknownProtocolVersion = 1;
|
|
288
|
+
})(InitializeErrorCodes = exports.InitializeErrorCodes || (exports.InitializeErrorCodes = {}));
|
|
242
289
|
/**
|
|
243
290
|
* The initialized notification is sent from the client to the
|
|
244
291
|
* server after the client is fully initialized and the server
|
|
@@ -491,6 +538,14 @@ var FileChangeType;
|
|
|
491
538
|
*/
|
|
492
539
|
FileChangeType.Deleted = 3;
|
|
493
540
|
})(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
|
|
541
|
+
var RelativePattern;
|
|
542
|
+
(function (RelativePattern) {
|
|
543
|
+
function is(value) {
|
|
544
|
+
const candidate = value;
|
|
545
|
+
return Is.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is.string(candidate.pattern);
|
|
546
|
+
}
|
|
547
|
+
RelativePattern.is = is;
|
|
548
|
+
})(RelativePattern = exports.RelativePattern || (exports.RelativePattern = {}));
|
|
494
549
|
var WatchKind;
|
|
495
550
|
(function (WatchKind) {
|
|
496
551
|
/**
|
|
@@ -678,7 +733,8 @@ var WorkspaceSymbolRequest;
|
|
|
678
733
|
* A request to resolve the range inside the workspace
|
|
679
734
|
* symbol's location.
|
|
680
735
|
*
|
|
681
|
-
* @since 3.17.0
|
|
736
|
+
* @since 3.17.0
|
|
737
|
+
* @proposed
|
|
682
738
|
*/
|
|
683
739
|
var WorkspaceSymbolResolveRequest;
|
|
684
740
|
(function (WorkspaceSymbolResolveRequest) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Range } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { StaticRegistrationOptions, TextDocumentPositionParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
|
|
4
|
+
import type { StaticRegistrationOptions, TextDocumentPositionParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities for the linked editing range request.
|
|
7
7
|
*
|
|
@@ -46,6 +46,6 @@ export interface LinkedEditingRanges {
|
|
|
46
46
|
*/
|
|
47
47
|
export declare namespace LinkedEditingRangeRequest {
|
|
48
48
|
const method: 'textDocument/linkedEditingRange';
|
|
49
|
-
const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void,
|
|
49
|
+
const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void, void, LinkedEditingRangeRegistrationOptions>;
|
|
50
50
|
type HandlerSignature = RequestHandler<LinkedEditingRangeParams, LinkedEditingRanges | null, void>;
|
|
51
51
|
}
|