massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / vscode-languageserver / lib / common / moniker.js
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 exports.MonikerFeature = void 0;
8 const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
9 const MonikerFeature = (Base) => {
10     return class extends Base {
11         get moniker() {
12             return {
13                 on: (handler) => {
14                     const type = vscode_languageserver_protocol_1.MonikerRequest.type;
15                     this.connection.onRequest(type, (params, cancel) => {
16                         return handler(params, cancel, this.attachWorkDoneProgress(params), this.attachPartialResultProgress(type, params));
17                     });
18                 },
19             };
20         }
21     };
22 };
23 exports.MonikerFeature = MonikerFeature;
24 //# sourceMappingURL=moniker.js.map