1 import { RequestHandler } from 'vscode-jsonrpc';
2 import { CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-types';
3 import { ProtocolRequestType } from './messages';
4 import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
8 export interface CallHierarchyClientCapabilities {
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.
14 dynamicRegistration?: boolean;
17 * Call hierarchy options used during static registration.
21 export interface CallHierarchyOptions extends WorkDoneProgressOptions {
24 * Call hierarchy options used during static or dynamic registration.
28 export interface CallHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, CallHierarchyOptions, StaticRegistrationOptions {
31 * The parameter of a `textDocument/prepareCallHierarchy` request.
35 export interface CallHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
38 * A request to result a `CallHierarchyItem` in a document at a given position.
39 * Can be used as an input to a incoming or outgoing call hierarchy.
43 export declare namespace CallHierarchyPrepareRequest {
44 const method: 'textDocument/prepareCallHierarchy';
45 const type: ProtocolRequestType<CallHierarchyPrepareParams, CallHierarchyItem[] | null, never, void, CallHierarchyRegistrationOptions>;
46 type HandlerSignature = RequestHandler<CallHierarchyPrepareParams, CallHierarchyItem[] | null, void>;
49 * The parameter of a `callHierarchy/incomingCalls` request.
53 export interface CallHierarchyIncomingCallsParams extends WorkDoneProgressParams, PartialResultParams {
54 item: CallHierarchyItem;
57 * A request to resolve the incoming calls for a given `CallHierarchyItem`.
61 export declare namespace CallHierarchyIncomingCallsRequest {
62 const method: 'callHierarchy/incomingCalls';
63 const type: ProtocolRequestType<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, CallHierarchyIncomingCall[], void, void>;
64 type HandlerSignature = RequestHandler<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, void>;
67 * The parameter of a `callHierarchy/outgoingCalls` request.
71 export interface CallHierarchyOutgoingCallsParams extends WorkDoneProgressParams, PartialResultParams {
72 item: CallHierarchyItem;
75 * A request to resolve the outgoing calls for a given `CallHierarchyItem`.
79 export declare namespace CallHierarchyOutgoingCallsRequest {
80 const method: 'callHierarchy/outgoingCalls';
81 const type: ProtocolRequestType<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, CallHierarchyOutgoingCall[], void, void>;
82 type HandlerSignature = RequestHandler<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, void>;