UNPKG

784 BTypeScriptView Raw
1import { InlineValue, Disposable, InlineValueParams } from 'vscode-languageserver-protocol';
2import type { Feature, _Languages, ServerRequestHandler } from './server';
3/**
4 * Shape of the inline values feature
5 *
6 * @since 3.17.0
7 */
8export interface InlineValueFeatureShape {
9 inlineValue: {
10 /**
11 * Ask the client to refresh all inline values.
12 */
13 refresh(): Promise<void>;
14 /**
15 * Installs a handler for the inline values request.
16 *
17 * @param handler The corresponding handler.
18 */
19 on(handler: ServerRequestHandler<InlineValueParams, InlineValue[] | undefined | null, InlineValue[], void>): Disposable;
20 };
21}
22export declare const InlineValueFeature: Feature<_Languages, InlineValueFeatureShape>;