vscode-languageserver
Version:
Language server implementation for node
15 lines (14 loc) • 664 B
TypeScript
import { type Disposable, type DocumentUri, type RequestHandler, type TextDocumentContentParams, type TextDocumentContentResult } from 'vscode-languageserver-protocol';
import type { Feature, _RemoteWorkspace } from './server';
/**
* Shape of the text document content feature
*
* @since 3.18.0
*/
export interface TextDocumentContentFeatureShape {
textDocumentContent: {
refresh(uri: DocumentUri): Promise<void>;
on(handler: RequestHandler<TextDocumentContentParams, TextDocumentContentResult | null, void>): Disposable;
};
}
export declare const TextDocumentContentFeature: Feature<_RemoteWorkspace, TextDocumentContentFeatureShape>;