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