Upsilon-VsCode/Client/node_modules/vscode-languageclient/lib/implementation.d.ts

16 lines
1.1 KiB
TypeScript
Raw Normal View History

2019-02-17 17:07:28 +00:00
import { Disposable, TextDocument, ProviderResult, Position as VPosition, Definition as VDefinition } from 'vscode';
import { ClientCapabilities, CancellationToken, ServerCapabilities, TextDocumentRegistrationOptions, DocumentSelector } from 'vscode-languageserver-protocol';
import { TextDocumentFeature, BaseLanguageClient } from './client';
export interface ProvideImplementationSignature {
(document: TextDocument, position: VPosition, token: CancellationToken): ProviderResult<VDefinition>;
}
export interface ImplementationMiddleware {
provideImplementation?: (this: void, document: TextDocument, position: VPosition, token: CancellationToken, next: ProvideImplementationSignature) => ProviderResult<VDefinition>;
}
export declare class ImplementationFeature extends TextDocumentFeature<TextDocumentRegistrationOptions> {
constructor(client: BaseLanguageClient);
fillClientCapabilities(capabilites: ClientCapabilities): void;
initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector): void;
protected registerLanguageProvider(options: TextDocumentRegistrationOptions): Disposable;
}