UNPKG

782 BTypeScriptView Raw
1import { InlineCompletionItem, Disposable, InlineCompletionParams, InlineCompletionList } from 'vscode-languageserver-protocol';
2import type { Feature, _Languages, ServerRequestHandler } from './server';
3/**
4 * Shape of the inline completions feature
5 *
6 * @since 3.18.0
7 */
8export interface InlineCompletionFeatureShape {
9 inlineCompletion: {
10 /**
11 * Installs a handler for the inline completions request.
12 *
13 * @param handler The corresponding handler.
14 */
15 on(handler: ServerRequestHandler<InlineCompletionParams, InlineCompletionList | InlineCompletionItem[] | undefined | null, InlineCompletionItem[], void>): Disposable;
16 };
17}
18export declare const InlineCompletionFeature: Feature<_Languages, InlineCompletionFeatureShape>;