vscode-languageserver-protocol 3.15.0-next.9 → 3.15.3
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/.eslintignore +1 -0
- package/lib/main.d.ts +53 -31
- package/lib/main.js +34 -23
- package/lib/messages.d.ts +15 -0
- package/lib/messages.js +31 -0
- package/lib/protocol.callHierarchy.proposed.d.ts +133 -70
- package/lib/protocol.callHierarchy.proposed.js +26 -22
- package/lib/protocol.colorProvider.d.ts +6 -7
- package/lib/protocol.colorProvider.js +5 -2
- package/lib/protocol.configuration.d.ts +3 -2
- package/lib/protocol.configuration.js +2 -2
- package/lib/protocol.d.ts +149 -54
- package/lib/protocol.declaration.d.ts +6 -3
- package/lib/protocol.declaration.js +4 -1
- package/lib/protocol.foldingRange.d.ts +5 -2
- package/lib/protocol.foldingRange.js +4 -1
- package/lib/protocol.implementation.d.ts +6 -3
- package/lib/protocol.implementation.js +4 -1
- package/lib/protocol.js +96 -41
- package/lib/{protocol.progress.proposed.d.ts → protocol.progress.d.ts} +4 -3
- package/lib/{protocol.progress.proposed.js → protocol.progress.js} +3 -2
- package/lib/protocol.selectionRange.d.ts +5 -2
- package/lib/protocol.selectionRange.js +4 -1
- package/lib/protocol.sematicTokens.proposed.d.ts +240 -0
- package/lib/protocol.sematicTokens.proposed.js +93 -0
- package/lib/protocol.typeDefinition.d.ts +6 -3
- package/lib/protocol.typeDefinition.js +4 -1
- package/lib/protocol.workspaceFolders.d.ts +5 -4
- package/lib/protocol.workspaceFolders.js +3 -3
- package/lib/utils/is.d.ts +0 -1
- package/lib/utils/is.js +0 -4
- package/package.json +3 -3
- package/.eslintrc.json +0 -6
- package/vscode-languageserver-protocol.lsif +0 -18295
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lib
|
package/lib/main.d.ts
CHANGED
|
@@ -1,41 +1,63 @@
|
|
|
1
|
-
import { ErrorCodes, ResponseError, CancellationToken, CancellationTokenSource, Disposable, Event, Emitter, Trace, Tracer, TraceFormat, TraceOptions, SetTraceNotification, LogTraceNotification, Message, NotificationMessage, RequestMessage, MessageType as RPCMessageType, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, StarRequestHandler, HandlerResult, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, StarNotificationHandler, MessageReader, MessageWriter, Logger, ConnectionStrategy, StreamMessageReader, StreamMessageWriter, IPCMessageReader, IPCMessageWriter, createClientPipeTransport, createServerPipeTransport, generateRandomPipeName, DataCallback, createClientSocketTransport, createServerSocketTransport, ProgressType, ProgressToken } from 'vscode-jsonrpc';
|
|
2
|
-
export { ErrorCodes, ResponseError, CancellationToken, CancellationTokenSource, Disposable, Event, Emitter, Trace, Tracer, TraceFormat, TraceOptions, SetTraceNotification, LogTraceNotification, Message, NotificationMessage, RequestMessage, RPCMessageType, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, StarRequestHandler, HandlerResult, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, StarNotificationHandler, MessageReader, MessageWriter, Logger, ConnectionStrategy, StreamMessageReader, StreamMessageWriter, IPCMessageReader, IPCMessageWriter, createClientPipeTransport, createServerPipeTransport, generateRandomPipeName, DataCallback, createClientSocketTransport, createServerSocketTransport, ProgressType, ProgressToken };
|
|
1
|
+
import { ErrorCodes, ResponseError, CancellationToken, CancellationTokenSource, Disposable, Event, Emitter, Trace, Tracer, TraceFormat, TraceOptions, SetTraceNotification, LogTraceNotification, Message, NotificationMessage, RequestMessage, MessageType as RPCMessageType, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, StarRequestHandler, HandlerResult, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, StarNotificationHandler, MessageReader, PartialMessageInfo, MessageWriter, Logger, ConnectionStrategy, StreamMessageReader, StreamMessageWriter, IPCMessageReader, IPCMessageWriter, createClientPipeTransport, createServerPipeTransport, generateRandomPipeName, DataCallback, createClientSocketTransport, createServerSocketTransport, ProgressType, ProgressToken } from 'vscode-jsonrpc';
|
|
2
|
+
export { ErrorCodes, ResponseError, CancellationToken, CancellationTokenSource, Disposable, Event, Emitter, Trace, Tracer, TraceFormat, TraceOptions, SetTraceNotification, LogTraceNotification, Message, NotificationMessage, RequestMessage, RPCMessageType, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, StarRequestHandler, HandlerResult, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, StarNotificationHandler, MessageReader, PartialMessageInfo, MessageWriter, Logger, ConnectionStrategy, StreamMessageReader, StreamMessageWriter, IPCMessageReader, IPCMessageWriter, createClientPipeTransport, createServerPipeTransport, generateRandomPipeName, DataCallback, createClientSocketTransport, createServerSocketTransport, ProgressType, ProgressToken };
|
|
3
3
|
export * from 'vscode-languageserver-types';
|
|
4
4
|
export * from './protocol';
|
|
5
5
|
export { FoldingRangeParams as FoldingRangeRequestParam } from './protocol';
|
|
6
6
|
import * as callHierarchy from './protocol.callHierarchy.proposed';
|
|
7
|
-
import * as
|
|
7
|
+
import * as st from './protocol.sematicTokens.proposed';
|
|
8
8
|
export declare namespace Proposed {
|
|
9
9
|
type CallHierarchyClientCapabilities = callHierarchy.CallHierarchyClientCapabilities;
|
|
10
|
+
type CallHierarchyItem = callHierarchy.CallHierarchyItem;
|
|
11
|
+
type CallHierarchyIncomingCall = callHierarchy.CallHierarchyIncomingCall;
|
|
12
|
+
type CallHierarchyOutgoingCall = callHierarchy.CallHierarchyOutgoingCall;
|
|
13
|
+
type CallHierarchyOptions = callHierarchy.CallHierarchyOptions;
|
|
14
|
+
type CallHierarchyRegistrationOptions = callHierarchy.CallHierarchyRegistrationOptions;
|
|
10
15
|
type CallHierarchyServerCapabilities = callHierarchy.CallHierarchyServerCapabilities;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
type CallHierarchyPrepareParams = callHierarchy.CallHierarchyPrepareParams;
|
|
17
|
+
namespace CallHierarchyPrepareRequest {
|
|
18
|
+
const method: "textDocument/prepareCallHierarchy";
|
|
19
|
+
const type: import("./messages").ProtocolRequestType<callHierarchy.CallHierarchyPrepareParams, callHierarchy.CallHierarchyItem[] | null, never, void, callHierarchy.CallHierarchyRegistrationOptions>;
|
|
20
|
+
type HandlerSignature = callHierarchy.CallHierarchyPrepareRequest.HandlerSignature;
|
|
14
21
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
22
|
+
type CallHierarchyIncomingCallsParams = callHierarchy.CallHierarchyIncomingCallsParams;
|
|
23
|
+
namespace CallHierarchyIncomingCallsRequest {
|
|
24
|
+
const method: "callHierarchy/incomingCalls";
|
|
25
|
+
const type: import("./messages").ProtocolRequestType<callHierarchy.CallHierarchyIncomingCallsParams, callHierarchy.CallHierarchyIncomingCall[] | null, callHierarchy.CallHierarchyIncomingCall[], void, void>;
|
|
26
|
+
type HandlerSignature = callHierarchy.CallHierarchyIncomingCallsRequest.HandlerSignature;
|
|
18
27
|
}
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
type CallHierarchyOutgoingCallsParams = callHierarchy.CallHierarchyOutgoingCallsParams;
|
|
29
|
+
namespace CallHierarchyOutgoingCallsRequest {
|
|
30
|
+
const method: "callHierarchy/outgoingCalls";
|
|
31
|
+
const type: import("./messages").ProtocolRequestType<callHierarchy.CallHierarchyOutgoingCallsParams, callHierarchy.CallHierarchyOutgoingCall[] | null, callHierarchy.CallHierarchyOutgoingCall[], void, void>;
|
|
32
|
+
type HandlerSignature = callHierarchy.CallHierarchyOutgoingCallsRequest.HandlerSignature;
|
|
33
|
+
}
|
|
34
|
+
const SemanticTokenTypes: typeof st.SemanticTokenTypes;
|
|
35
|
+
const SemanticTokenModifiers: typeof st.SemanticTokenModifiers;
|
|
36
|
+
type SemanticTokensLegend = st.SemanticTokensLegend;
|
|
37
|
+
type SemanticTokens = st.SemanticTokens;
|
|
38
|
+
const SemanticTokens: typeof st.SemanticTokens;
|
|
39
|
+
type SemanticTokensPartialResult = st.SemanticTokensPartialResult;
|
|
40
|
+
type SemanticTokensEdit = st.SemanticTokensEdit;
|
|
41
|
+
type SemanticTokensEdits = st.SemanticTokensEdits;
|
|
42
|
+
type SemanticTokensEditsPartialResult = st.SemanticTokensEditsPartialResult;
|
|
43
|
+
type SemanticTokensClientCapabilities = st.SemanticTokensClientCapabilities;
|
|
44
|
+
type SemanticTokensOptions = st.SemanticTokensOptions;
|
|
45
|
+
type SemanticTokensRegistrationOptions = st.SemanticTokensRegistrationOptions;
|
|
46
|
+
type SemanticTokensServerCapabilities = st.SemanticTokensServerCapabilities;
|
|
47
|
+
type SemanticTokensParams = st.SemanticTokensParams;
|
|
48
|
+
namespace SemanticTokensRequest {
|
|
49
|
+
const method: "textDocument/semanticTokens";
|
|
50
|
+
const type: import("./messages").ProtocolRequestType<st.SemanticTokensParams, st.SemanticTokens | null, st.SemanticTokensPartialResult, void, st.SemanticTokensRegistrationOptions>;
|
|
29
51
|
}
|
|
30
|
-
type
|
|
31
|
-
namespace
|
|
32
|
-
const
|
|
33
|
-
type
|
|
52
|
+
type SemanticTokensEditsParams = st.SemanticTokensEditsParams;
|
|
53
|
+
namespace SemanticTokensEditsRequest {
|
|
54
|
+
const method: "textDocument/semanticTokens/edits";
|
|
55
|
+
const type: import("./messages").ProtocolRequestType<st.SemanticTokensEditsParams, st.SemanticTokens | st.SemanticTokensEdits | null, st.SemanticTokensPartialResult | st.SemanticTokensEditsPartialResult, void, st.SemanticTokensRegistrationOptions>;
|
|
34
56
|
}
|
|
35
|
-
type
|
|
36
|
-
namespace
|
|
37
|
-
const
|
|
38
|
-
type
|
|
57
|
+
type SemanticTokensRangeParams = st.SemanticTokensRangeParams;
|
|
58
|
+
namespace SemanticTokensRangeRequest {
|
|
59
|
+
const method: "textDocument/semanticTokens/range";
|
|
60
|
+
const type: import("./messages").ProtocolRequestType<st.SemanticTokensRangeParams, st.SemanticTokens | null, st.SemanticTokensPartialResult, void, void>;
|
|
39
61
|
}
|
|
40
62
|
}
|
|
41
63
|
export interface ProtocolConnection {
|
|
@@ -46,7 +68,7 @@ export interface ProtocolConnection {
|
|
|
46
68
|
* @param token An optional cancellation token.
|
|
47
69
|
* @returns A promise resolving to the request's result.
|
|
48
70
|
*/
|
|
49
|
-
sendRequest<R, E, RO>(type: RequestType0<R, E, RO>, token?: CancellationToken):
|
|
71
|
+
sendRequest<R, E, RO>(type: RequestType0<R, E, RO>, token?: CancellationToken): Promise<R>;
|
|
50
72
|
/**
|
|
51
73
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
52
74
|
*
|
|
@@ -55,7 +77,7 @@ export interface ProtocolConnection {
|
|
|
55
77
|
* @param token An optional cancellation token.
|
|
56
78
|
* @returns A promise resolving to the request's result.
|
|
57
79
|
*/
|
|
58
|
-
sendRequest<P, R, E, RO>(type: RequestType<P, R, E, RO>, params: P, token?: CancellationToken):
|
|
80
|
+
sendRequest<P, R, E, RO>(type: RequestType<P, R, E, RO>, params: P, token?: CancellationToken): Promise<R>;
|
|
59
81
|
/**
|
|
60
82
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
61
83
|
*
|
|
@@ -63,7 +85,7 @@ export interface ProtocolConnection {
|
|
|
63
85
|
* @param token An optional cancellation token.
|
|
64
86
|
* @returns A promise resolving to the request's result.
|
|
65
87
|
*/
|
|
66
|
-
sendRequest<R>(method: string, token?: CancellationToken):
|
|
88
|
+
sendRequest<R>(method: string, token?: CancellationToken): Promise<R>;
|
|
67
89
|
/**
|
|
68
90
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
69
91
|
*
|
|
@@ -72,7 +94,7 @@ export interface ProtocolConnection {
|
|
|
72
94
|
* @param token An optional cancellation token.
|
|
73
95
|
* @returns A promise resolving to the request's result.
|
|
74
96
|
*/
|
|
75
|
-
sendRequest<R>(method: string, param: any, token?: CancellationToken):
|
|
97
|
+
sendRequest<R>(method: string, param: any, token?: CancellationToken): Promise<R>;
|
|
76
98
|
/**
|
|
77
99
|
* Installs a request handler.
|
|
78
100
|
*
|
package/lib/main.js
CHANGED
|
@@ -39,31 +39,42 @@ exports.ProgressType = vscode_jsonrpc_1.ProgressType;
|
|
|
39
39
|
__export(require("vscode-languageserver-types"));
|
|
40
40
|
__export(require("./protocol"));
|
|
41
41
|
const callHierarchy = require("./protocol.callHierarchy.proposed");
|
|
42
|
-
const
|
|
42
|
+
const st = require("./protocol.sematicTokens.proposed");
|
|
43
43
|
var Proposed;
|
|
44
44
|
(function (Proposed) {
|
|
45
|
-
let
|
|
46
|
-
(function (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
let
|
|
56
|
-
(function (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
let
|
|
64
|
-
(function (
|
|
65
|
-
|
|
66
|
-
|
|
45
|
+
let CallHierarchyPrepareRequest;
|
|
46
|
+
(function (CallHierarchyPrepareRequest) {
|
|
47
|
+
CallHierarchyPrepareRequest.method = callHierarchy.CallHierarchyPrepareRequest.method;
|
|
48
|
+
CallHierarchyPrepareRequest.type = callHierarchy.CallHierarchyPrepareRequest.type;
|
|
49
|
+
})(CallHierarchyPrepareRequest = Proposed.CallHierarchyPrepareRequest || (Proposed.CallHierarchyPrepareRequest = {}));
|
|
50
|
+
let CallHierarchyIncomingCallsRequest;
|
|
51
|
+
(function (CallHierarchyIncomingCallsRequest) {
|
|
52
|
+
CallHierarchyIncomingCallsRequest.method = callHierarchy.CallHierarchyIncomingCallsRequest.method;
|
|
53
|
+
CallHierarchyIncomingCallsRequest.type = callHierarchy.CallHierarchyIncomingCallsRequest.type;
|
|
54
|
+
})(CallHierarchyIncomingCallsRequest = Proposed.CallHierarchyIncomingCallsRequest || (Proposed.CallHierarchyIncomingCallsRequest = {}));
|
|
55
|
+
let CallHierarchyOutgoingCallsRequest;
|
|
56
|
+
(function (CallHierarchyOutgoingCallsRequest) {
|
|
57
|
+
CallHierarchyOutgoingCallsRequest.method = callHierarchy.CallHierarchyOutgoingCallsRequest.method;
|
|
58
|
+
CallHierarchyOutgoingCallsRequest.type = callHierarchy.CallHierarchyOutgoingCallsRequest.type;
|
|
59
|
+
})(CallHierarchyOutgoingCallsRequest = Proposed.CallHierarchyOutgoingCallsRequest || (Proposed.CallHierarchyOutgoingCallsRequest = {}));
|
|
60
|
+
Proposed.SemanticTokenTypes = st.SemanticTokenTypes;
|
|
61
|
+
Proposed.SemanticTokenModifiers = st.SemanticTokenModifiers;
|
|
62
|
+
Proposed.SemanticTokens = st.SemanticTokens;
|
|
63
|
+
let SemanticTokensRequest;
|
|
64
|
+
(function (SemanticTokensRequest) {
|
|
65
|
+
SemanticTokensRequest.method = st.SemanticTokensRequest.method;
|
|
66
|
+
SemanticTokensRequest.type = st.SemanticTokensRequest.type;
|
|
67
|
+
})(SemanticTokensRequest = Proposed.SemanticTokensRequest || (Proposed.SemanticTokensRequest = {}));
|
|
68
|
+
let SemanticTokensEditsRequest;
|
|
69
|
+
(function (SemanticTokensEditsRequest) {
|
|
70
|
+
SemanticTokensEditsRequest.method = st.SemanticTokensEditsRequest.method;
|
|
71
|
+
SemanticTokensEditsRequest.type = st.SemanticTokensEditsRequest.type;
|
|
72
|
+
})(SemanticTokensEditsRequest = Proposed.SemanticTokensEditsRequest || (Proposed.SemanticTokensEditsRequest = {}));
|
|
73
|
+
let SemanticTokensRangeRequest;
|
|
74
|
+
(function (SemanticTokensRangeRequest) {
|
|
75
|
+
SemanticTokensRangeRequest.method = st.SemanticTokensRangeRequest.method;
|
|
76
|
+
SemanticTokensRangeRequest.type = st.SemanticTokensRangeRequest.type;
|
|
77
|
+
})(SemanticTokensRangeRequest = Proposed.SemanticTokensRangeRequest || (Proposed.SemanticTokensRangeRequest = {}));
|
|
67
78
|
})(Proposed = exports.Proposed || (exports.Proposed = {}));
|
|
68
79
|
function createProtocolConnection(reader, writer, logger, strategy) {
|
|
69
80
|
return vscode_jsonrpc_1.createMessageConnection(reader, writer, logger, strategy);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RequestType, RequestType0, NotificationType, NotificationType0, ProgressType, _EM } from 'vscode-jsonrpc';
|
|
2
|
+
export declare class ProtocolRequestType0<R, PR, E, RO> extends RequestType0<R, E, RO> implements ProgressType<PR> {
|
|
3
|
+
readonly __?: [PR, _EM];
|
|
4
|
+
constructor(method: string);
|
|
5
|
+
}
|
|
6
|
+
export declare class ProtocolRequestType<P, R, PR, E, RO> extends RequestType<P, R, E, RO> implements ProgressType<PR> {
|
|
7
|
+
readonly __?: [PR, _EM];
|
|
8
|
+
constructor(method: string);
|
|
9
|
+
}
|
|
10
|
+
export declare class ProtocolNotificationType<P, RO> extends NotificationType<P, RO> {
|
|
11
|
+
constructor(method: string);
|
|
12
|
+
}
|
|
13
|
+
export declare class ProtocolNotificationType0<RO> extends NotificationType0<RO> {
|
|
14
|
+
constructor(method: string);
|
|
15
|
+
}
|
package/lib/messages.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* --------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
* ------------------------------------------------------------------------------------------ */
|
|
5
|
+
'use strict';
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
8
|
+
class ProtocolRequestType0 extends vscode_jsonrpc_1.RequestType0 {
|
|
9
|
+
constructor(method) {
|
|
10
|
+
super(method);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ProtocolRequestType0 = ProtocolRequestType0;
|
|
14
|
+
class ProtocolRequestType extends vscode_jsonrpc_1.RequestType {
|
|
15
|
+
constructor(method) {
|
|
16
|
+
super(method);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ProtocolRequestType = ProtocolRequestType;
|
|
20
|
+
class ProtocolNotificationType extends vscode_jsonrpc_1.NotificationType {
|
|
21
|
+
constructor(method) {
|
|
22
|
+
super(method);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.ProtocolNotificationType = ProtocolNotificationType;
|
|
26
|
+
class ProtocolNotificationType0 extends vscode_jsonrpc_1.NotificationType0 {
|
|
27
|
+
constructor(method) {
|
|
28
|
+
super(method);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ProtocolNotificationType0 = ProtocolNotificationType0;
|
|
@@ -1,13 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SymbolKind, Range } from 'vscode-languageserver-types';
|
|
1
|
+
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { SymbolKind, SymbolTag, Range, DocumentUri } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType } from './messages';
|
|
3
4
|
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Represents programming constructs like functions or constructors in the context
|
|
7
|
+
* of call hierarchy.
|
|
8
|
+
*
|
|
9
|
+
* @since 3.16.0 - Proposed state
|
|
10
|
+
*/
|
|
11
|
+
export interface CallHierarchyItem {
|
|
12
|
+
/**
|
|
13
|
+
* The name of this item.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* The kind of this item.
|
|
18
|
+
*/
|
|
19
|
+
kind: SymbolKind;
|
|
20
|
+
/**
|
|
21
|
+
* Tags for this item.
|
|
22
|
+
*/
|
|
23
|
+
tags?: SymbolTag[];
|
|
24
|
+
/**
|
|
25
|
+
* More detail for this item, e.g. the signature of a function.
|
|
26
|
+
*/
|
|
27
|
+
detail?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The resource identifier of this item.
|
|
30
|
+
*/
|
|
31
|
+
uri: DocumentUri;
|
|
32
|
+
/**
|
|
33
|
+
* The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
|
|
34
|
+
*/
|
|
35
|
+
range: Range;
|
|
36
|
+
/**
|
|
37
|
+
* The range that should be selected and revealed when this symbol is being picked, e.g. the name of a function.
|
|
38
|
+
* Must be contained by the [`range`](#CallHierarchyItem.range).
|
|
39
|
+
*/
|
|
40
|
+
selectionRange: Range;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Represents an incoming call, e.g. a caller of a method or constructor.
|
|
44
|
+
*
|
|
45
|
+
* @since 3.16.0 - Proposed state
|
|
46
|
+
*/
|
|
47
|
+
export interface CallHierarchyIncomingCall {
|
|
48
|
+
/**
|
|
49
|
+
* The item that makes the call.
|
|
50
|
+
*/
|
|
51
|
+
from: CallHierarchyItem;
|
|
52
|
+
/**
|
|
53
|
+
* The range at which at which the calls appears. This is relative to the caller
|
|
54
|
+
* denoted by [`this.from`](#CallHierarchyIncomingCall.from).
|
|
55
|
+
*/
|
|
56
|
+
fromRanges: Range[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Represents an outgoing call, e.g. calling a getter from a method or a method from a constructor etc.
|
|
60
|
+
*
|
|
61
|
+
* @since 3.16.0 - Proposed state
|
|
62
|
+
*/
|
|
63
|
+
export interface CallHierarchyOutgoingCall {
|
|
64
|
+
/**
|
|
65
|
+
* The item that is called.
|
|
66
|
+
*/
|
|
67
|
+
to: CallHierarchyItem;
|
|
68
|
+
/**
|
|
69
|
+
* The range at which this item is called. This is the range relative to the caller, e.g the item
|
|
70
|
+
* passed to [`provideCallHierarchyOutgoingCalls`](#CallHierarchyItemProvider.provideCallHierarchyOutgoingCalls)
|
|
71
|
+
* and not [`this.to`](#CallHierarchyOutgoingCall.to).
|
|
72
|
+
*/
|
|
73
|
+
fromRanges: Range[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @since 3.16.0 - Proposed state
|
|
77
|
+
*/
|
|
4
78
|
export interface CallHierarchyClientCapabilities {
|
|
5
79
|
/**
|
|
6
80
|
* The text document client capabilities
|
|
7
81
|
*/
|
|
8
82
|
textDocument?: {
|
|
9
83
|
/**
|
|
10
|
-
* Capabilities specific to the `textDocument/callHierarchy
|
|
84
|
+
* Capabilities specific to the `textDocument/callHierarchy`.
|
|
85
|
+
*
|
|
86
|
+
* @since 3.16.0 - Proposed state
|
|
11
87
|
*/
|
|
12
88
|
callHierarchy?: {
|
|
13
89
|
/**
|
|
@@ -19,10 +95,25 @@ export interface CallHierarchyClientCapabilities {
|
|
|
19
95
|
};
|
|
20
96
|
};
|
|
21
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Call hierarchy options used during static registration.
|
|
100
|
+
*
|
|
101
|
+
* @since 3.16.0 - Proposed state
|
|
102
|
+
*/
|
|
22
103
|
export interface CallHierarchyOptions extends WorkDoneProgressOptions {
|
|
23
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Call hierarchy options used during static or dynamic registration.
|
|
107
|
+
*
|
|
108
|
+
* @since 3.16.0 - Proposed state
|
|
109
|
+
*/
|
|
24
110
|
export interface CallHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, CallHierarchyOptions {
|
|
25
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* The call hierarchy server capabilities.
|
|
114
|
+
*
|
|
115
|
+
* @since 3.16.0 - Proposed state
|
|
116
|
+
*/
|
|
26
117
|
export interface CallHierarchyServerCapabilities {
|
|
27
118
|
/**
|
|
28
119
|
* The server provides Call Hierarchy support.
|
|
@@ -30,84 +121,56 @@ export interface CallHierarchyServerCapabilities {
|
|
|
30
121
|
callHierarchyProvider?: boolean | CallHierarchyOptions | (CallHierarchyRegistrationOptions & StaticRegistrationOptions);
|
|
31
122
|
}
|
|
32
123
|
/**
|
|
33
|
-
* The parameter of a `textDocument/
|
|
124
|
+
* The parameter of a `textDocument/prepareCallHierarchy` request.
|
|
125
|
+
*
|
|
126
|
+
* @since 3.16.0 - Proposed state
|
|
34
127
|
*/
|
|
35
|
-
export interface
|
|
36
|
-
/**
|
|
37
|
-
* The direction of calls to provide.
|
|
38
|
-
*/
|
|
39
|
-
direction: CallHierarchyDirection;
|
|
128
|
+
export interface CallHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
40
129
|
}
|
|
41
130
|
/**
|
|
42
|
-
*
|
|
131
|
+
* A request to result a `CallHierarchyItem` in a document at a given position.
|
|
132
|
+
* Can be used as an input to a incoming or outgoing call hierarchy.
|
|
133
|
+
*
|
|
134
|
+
* @since 3.16.0 - Proposed state
|
|
43
135
|
*/
|
|
44
|
-
export declare namespace
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const CallsFrom: 1;
|
|
49
|
-
/**
|
|
50
|
-
* The callees
|
|
51
|
-
*/
|
|
52
|
-
const CallsTo: 2;
|
|
136
|
+
export declare namespace CallHierarchyPrepareRequest {
|
|
137
|
+
const method: 'textDocument/prepareCallHierarchy';
|
|
138
|
+
const type: ProtocolRequestType<CallHierarchyPrepareParams, CallHierarchyItem[] | null, never, void, CallHierarchyRegistrationOptions>;
|
|
139
|
+
type HandlerSignature = RequestHandler<CallHierarchyPrepareParams, CallHierarchyItem[] | null, void>;
|
|
53
140
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
* More detail for this symbol, e.g the signature of a function.
|
|
62
|
-
*/
|
|
63
|
-
detail?: string;
|
|
64
|
-
/**
|
|
65
|
-
* The kind of this symbol.
|
|
66
|
-
*/
|
|
67
|
-
kind: SymbolKind;
|
|
68
|
-
/**
|
|
69
|
-
* URI of the document containing the symbol.
|
|
70
|
-
*/
|
|
71
|
-
uri: string;
|
|
72
|
-
/**
|
|
73
|
-
* The range enclosing this symbol not including leading/trailing whitespace but everything else
|
|
74
|
-
* like comments. This information is typically used to determine if the the clients cursor is
|
|
75
|
-
* inside the symbol to reveal in the symbol in the UI.
|
|
76
|
-
*/
|
|
77
|
-
range: Range;
|
|
78
|
-
/**
|
|
79
|
-
* The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
|
|
80
|
-
* Must be contained by the the `range`.
|
|
81
|
-
*/
|
|
82
|
-
selectionRange: Range;
|
|
141
|
+
/**
|
|
142
|
+
* The parameter of a `callHierarchy/incomingCalls` request.
|
|
143
|
+
*
|
|
144
|
+
* @since 3.16.0 - Proposed state
|
|
145
|
+
*/
|
|
146
|
+
export interface CallHierarchyIncomingCallsParams extends WorkDoneProgressParams, PartialResultParams {
|
|
147
|
+
item: CallHierarchyItem;
|
|
83
148
|
}
|
|
84
149
|
/**
|
|
85
|
-
*
|
|
150
|
+
* A request to resolve the incoming calls for a given `CallHierarchyItem`.
|
|
151
|
+
*
|
|
152
|
+
* @since 3.16.0 - Proposed state
|
|
86
153
|
*/
|
|
87
|
-
export
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
range: Range;
|
|
92
|
-
/**
|
|
93
|
-
* The symbol that contains the reference.
|
|
94
|
-
*/
|
|
95
|
-
from: CallHierarchyItem;
|
|
96
|
-
/**
|
|
97
|
-
* The symbol that is referenced.
|
|
98
|
-
*/
|
|
99
|
-
to: CallHierarchyItem;
|
|
154
|
+
export declare namespace CallHierarchyIncomingCallsRequest {
|
|
155
|
+
const method: 'callHierarchy/incomingCalls';
|
|
156
|
+
const type: ProtocolRequestType<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, CallHierarchyIncomingCall[], void, void>;
|
|
157
|
+
type HandlerSignature = RequestHandler<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, void>;
|
|
100
158
|
}
|
|
101
159
|
/**
|
|
102
|
-
*
|
|
160
|
+
* The parameter of a `callHierarchy/outgoingCalls` request.
|
|
103
161
|
*
|
|
104
|
-
*
|
|
105
|
-
|
|
162
|
+
* @since 3.16.0 - Proposed state
|
|
163
|
+
*/
|
|
164
|
+
export interface CallHierarchyOutgoingCallsParams extends WorkDoneProgressParams, PartialResultParams {
|
|
165
|
+
item: CallHierarchyItem;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* A request to resolve the outgoing calls for a given `CallHierarchyItem`.
|
|
106
169
|
*
|
|
107
|
-
*
|
|
170
|
+
* @since 3.16.0 - Proposed state
|
|
108
171
|
*/
|
|
109
|
-
export declare namespace
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
type HandlerSignature = RequestHandler<
|
|
172
|
+
export declare namespace CallHierarchyOutgoingCallsRequest {
|
|
173
|
+
const method: 'callHierarchy/outgoingCalls';
|
|
174
|
+
const type: ProtocolRequestType<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, CallHierarchyOutgoingCall[], void, void>;
|
|
175
|
+
type HandlerSignature = RequestHandler<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, void>;
|
|
113
176
|
}
|
|
@@ -4,31 +4,35 @@
|
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
5
|
'use strict';
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const
|
|
7
|
+
const messages_1 = require("./messages");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* A request to result a `CallHierarchyItem` in a document at a given position.
|
|
10
|
+
* Can be used as an input to a incoming or outgoing call hierarchy.
|
|
11
|
+
*
|
|
12
|
+
* @since 3.16.0 - Proposed state
|
|
10
13
|
*/
|
|
11
|
-
var
|
|
12
|
-
(function (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
CallHierarchyDirection.CallsFrom = 1;
|
|
17
|
-
/**
|
|
18
|
-
* The callees
|
|
19
|
-
*/
|
|
20
|
-
CallHierarchyDirection.CallsTo = 2;
|
|
21
|
-
})(CallHierarchyDirection = exports.CallHierarchyDirection || (exports.CallHierarchyDirection = {}));
|
|
14
|
+
var CallHierarchyPrepareRequest;
|
|
15
|
+
(function (CallHierarchyPrepareRequest) {
|
|
16
|
+
CallHierarchyPrepareRequest.method = 'textDocument/prepareCallHierarchy';
|
|
17
|
+
CallHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(CallHierarchyPrepareRequest.method);
|
|
18
|
+
})(CallHierarchyPrepareRequest = exports.CallHierarchyPrepareRequest || (exports.CallHierarchyPrepareRequest = {}));
|
|
22
19
|
/**
|
|
23
|
-
*
|
|
20
|
+
* A request to resolve the incoming calls for a given `CallHierarchyItem`.
|
|
24
21
|
*
|
|
25
|
-
*
|
|
26
|
-
|
|
22
|
+
* @since 3.16.0 - Proposed state
|
|
23
|
+
*/
|
|
24
|
+
var CallHierarchyIncomingCallsRequest;
|
|
25
|
+
(function (CallHierarchyIncomingCallsRequest) {
|
|
26
|
+
CallHierarchyIncomingCallsRequest.method = 'callHierarchy/incomingCalls';
|
|
27
|
+
CallHierarchyIncomingCallsRequest.type = new messages_1.ProtocolRequestType(CallHierarchyIncomingCallsRequest.method);
|
|
28
|
+
})(CallHierarchyIncomingCallsRequest = exports.CallHierarchyIncomingCallsRequest || (exports.CallHierarchyIncomingCallsRequest = {}));
|
|
29
|
+
/**
|
|
30
|
+
* A request to resolve the outgoing calls for a given `CallHierarchyItem`.
|
|
27
31
|
*
|
|
28
|
-
*
|
|
32
|
+
* @since 3.16.0 - Proposed state
|
|
29
33
|
*/
|
|
30
|
-
var
|
|
31
|
-
(function (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})(
|
|
34
|
+
var CallHierarchyOutgoingCallsRequest;
|
|
35
|
+
(function (CallHierarchyOutgoingCallsRequest) {
|
|
36
|
+
CallHierarchyOutgoingCallsRequest.method = 'callHierarchy/outgoingCalls';
|
|
37
|
+
CallHierarchyOutgoingCallsRequest.type = new messages_1.ProtocolRequestType(CallHierarchyOutgoingCallsRequest.method);
|
|
38
|
+
})(CallHierarchyOutgoingCallsRequest = exports.CallHierarchyOutgoingCallsRequest || (exports.CallHierarchyOutgoingCallsRequest = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
|
+
import { ProtocolRequestType } from './messages';
|
|
2
3
|
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
3
4
|
import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
|
4
5
|
export interface DocumentColorClientCapabilities {
|
|
@@ -10,10 +11,6 @@ export interface DocumentColorClientCapabilities {
|
|
|
10
11
|
dynamicRegistration?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface DocumentColorOptions extends WorkDoneProgressOptions {
|
|
13
|
-
/**
|
|
14
|
-
* Code lens has a resolve provider as well.
|
|
15
|
-
*/
|
|
16
|
-
resolveProvider?: boolean;
|
|
17
14
|
}
|
|
18
15
|
export interface DocumentColorRegistrationOptions extends TextDocumentRegistrationOptions, StaticRegistrationOptions, DocumentColorOptions {
|
|
19
16
|
}
|
|
@@ -33,7 +30,9 @@ export interface DocumentColorParams extends WorkDoneProgressParams, PartialResu
|
|
|
33
30
|
* that resolves to such.
|
|
34
31
|
*/
|
|
35
32
|
export declare namespace DocumentColorRequest {
|
|
36
|
-
const
|
|
33
|
+
const method: 'textDocument/documentColor';
|
|
34
|
+
const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
|
|
35
|
+
/** @deprecated Use DocumentColorRequest.type */
|
|
37
36
|
const resultType: ProgressType<ColorInformation[]>;
|
|
38
37
|
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
|
|
39
38
|
}
|
|
@@ -61,6 +60,6 @@ export interface ColorPresentationParams extends WorkDoneProgressParams, Partial
|
|
|
61
60
|
* that resolves to such.
|
|
62
61
|
*/
|
|
63
62
|
export declare namespace ColorPresentationRequest {
|
|
64
|
-
const type:
|
|
63
|
+
const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
|
|
65
64
|
type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>;
|
|
66
65
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
8
|
+
const messages_1 = require("./messages");
|
|
8
9
|
/**
|
|
9
10
|
* A request to list all color symbols found in a given text document. The request's
|
|
10
11
|
* parameter is of type [DocumentColorParams](#DocumentColorParams) the
|
|
@@ -13,7 +14,9 @@ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
|
13
14
|
*/
|
|
14
15
|
var DocumentColorRequest;
|
|
15
16
|
(function (DocumentColorRequest) {
|
|
16
|
-
DocumentColorRequest.
|
|
17
|
+
DocumentColorRequest.method = 'textDocument/documentColor';
|
|
18
|
+
DocumentColorRequest.type = new messages_1.ProtocolRequestType(DocumentColorRequest.method);
|
|
19
|
+
/** @deprecated Use DocumentColorRequest.type */
|
|
17
20
|
DocumentColorRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
18
21
|
})(DocumentColorRequest = exports.DocumentColorRequest || (exports.DocumentColorRequest = {}));
|
|
19
22
|
/**
|
|
@@ -24,5 +27,5 @@ var DocumentColorRequest;
|
|
|
24
27
|
*/
|
|
25
28
|
var ColorPresentationRequest;
|
|
26
29
|
(function (ColorPresentationRequest) {
|
|
27
|
-
ColorPresentationRequest.type = new
|
|
30
|
+
ColorPresentationRequest.type = new messages_1.ProtocolRequestType('textDocument/colorPresentation');
|
|
28
31
|
})(ColorPresentationRequest = exports.ColorPresentationRequest || (exports.ColorPresentationRequest = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
|
+
import { ProtocolRequestType } from './messages';
|
|
2
3
|
import { PartialResultParams } from './protocol';
|
|
3
4
|
export interface ConfigurationClientCapabilities {
|
|
4
5
|
/**
|
|
@@ -21,7 +22,7 @@ export interface ConfigurationClientCapabilities {
|
|
|
21
22
|
* change event and empty the cache if such an event is received.
|
|
22
23
|
*/
|
|
23
24
|
export declare namespace ConfigurationRequest {
|
|
24
|
-
const type:
|
|
25
|
+
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams, any[], never, void, void>;
|
|
25
26
|
type HandlerSignature = RequestHandler<ConfigurationParams, any[], void>;
|
|
26
27
|
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<any[], void>;
|
|
27
28
|
}
|