1 | import * as code from 'vscode';
|
2 | import * as proto from 'vscode-languageserver-protocol';
|
3 | import { TextDocumentLanguageFeature, FeatureClient } from './features';
|
4 | export interface ProvideLinkedEditingRangeSignature {
|
5 | (this: void, document: code.TextDocument, position: code.Position, token: code.CancellationToken): code.ProviderResult<code.LinkedEditingRanges>;
|
6 | }
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export interface LinkedEditingRangeMiddleware {
|
13 | provideLinkedEditingRange?: (this: void, document: code.TextDocument, position: code.Position, token: code.CancellationToken, next: ProvideLinkedEditingRangeSignature) => code.ProviderResult<code.LinkedEditingRanges>;
|
14 | }
|
15 | export declare class LinkedEditingFeature extends TextDocumentLanguageFeature<boolean | proto.LinkedEditingRangeOptions, proto.LinkedEditingRangeRegistrationOptions, code.LinkedEditingRangeProvider, LinkedEditingRangeMiddleware> {
|
16 | constructor(client: FeatureClient<LinkedEditingRangeMiddleware>);
|
17 | fillClientCapabilities(capabilities: proto.ClientCapabilities): void;
|
18 | initialize(capabilities: proto.ServerCapabilities, documentSelector: proto.DocumentSelector): void;
|
19 | protected registerLanguageProvider(options: proto.LinkedEditingRangeRegistrationOptions): [code.Disposable, code.LinkedEditingRangeProvider];
|
20 | private registerProvider;
|
21 | }
|