UNPKG

1.08 kBJavaScriptView Raw
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';
6Object.defineProperty(exports, "__esModule", { value: true });
7exports.InlineCompletionFeature = void 0;
8const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
9const 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};
22exports.InlineCompletionFeature = InlineCompletionFeature;