1 |
|
2 |
|
3 |
|
4 |
|
5 | 'use strict';
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | exports.InlineValueFeature = void 0;
|
8 | const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
|
9 | const InlineValueFeature = (Base) => {
|
10 | return class extends Base {
|
11 | get inlineValue() {
|
12 | return {
|
13 | refresh: () => {
|
14 | return this.connection.sendRequest(vscode_languageserver_protocol_1.InlineValueRefreshRequest.type);
|
15 | },
|
16 | on: (handler) => {
|
17 | return this.connection.onRequest(vscode_languageserver_protocol_1.InlineValueRequest.type, (params, cancel) => {
|
18 | return handler(params, cancel, this.attachWorkDoneProgress(params));
|
19 | });
|
20 | }
|
21 | };
|
22 | }
|
23 | };
|
24 | };
|
25 | exports.InlineValueFeature = InlineValueFeature;
|