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 * ------------------------------------------------------------------------------------------ */
6 Object.defineProperty(exports, "__esModule", { value: true });
7 exports.CallHierarchyFeature = void 0;
8 const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
9 const CallHierarchyFeature = (Base) => {
10 return class extends Base {
13 onPrepare: (handler) => {
14 this.connection.onRequest(vscode_languageserver_protocol_1.CallHierarchyPrepareRequest.type, (params, cancel) => {
15 return handler(params, cancel, this.attachWorkDoneProgress(params), undefined);
18 onIncomingCalls: (handler) => {
19 const type = vscode_languageserver_protocol_1.CallHierarchyIncomingCallsRequest.type;
20 this.connection.onRequest(type, (params, cancel) => {
21 return handler(params, cancel, this.attachWorkDoneProgress(params), this.attachPartialResultProgress(type, params));
24 onOutgoingCalls: (handler) => {
25 const type = vscode_languageserver_protocol_1.CallHierarchyOutgoingCallsRequest.type;
26 this.connection.onRequest(type, (params, cancel) => {
27 return handler(params, cancel, this.attachWorkDoneProgress(params), this.attachPartialResultProgress(type, params));
34 exports.CallHierarchyFeature = CallHierarchyFeature;
35 //# sourceMappingURL=callHierarchy.js.map