Revamping to matrix style
This commit is contained in:
109
node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts
generated
vendored
Normal file
109
node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts
generated
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
||||
import { TextDocumentIdentifier, uinteger, FoldingRange, FoldingRangeKind } from 'vscode-languageserver-types';
|
||||
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
||||
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
||||
export interface FoldingRangeClientCapabilities {
|
||||
/**
|
||||
* Whether implementation supports dynamic registration for folding range
|
||||
* providers. If this is set to `true` the client supports the new
|
||||
* `FoldingRangeRegistrationOptions` return value for the corresponding
|
||||
* server capability as well.
|
||||
*/
|
||||
dynamicRegistration?: boolean;
|
||||
/**
|
||||
* The maximum number of folding ranges that the client prefers to receive
|
||||
* per document. The value serves as a hint, servers are free to follow the
|
||||
* limit.
|
||||
*/
|
||||
rangeLimit?: uinteger;
|
||||
/**
|
||||
* If set, the client signals that it only supports folding complete lines.
|
||||
* If set, client will ignore specified `startCharacter` and `endCharacter`
|
||||
* properties in a FoldingRange.
|
||||
*/
|
||||
lineFoldingOnly?: boolean;
|
||||
/**
|
||||
* Specific options for the folding range kind.
|
||||
*
|
||||
* @since 3.17.0
|
||||
*/
|
||||
foldingRangeKind?: {
|
||||
/**
|
||||
* The folding range kind values the client supports. When this
|
||||
* property exists the client also guarantees that it will
|
||||
* handle values outside its set gracefully and falls back
|
||||
* to a default value when unknown.
|
||||
*/
|
||||
valueSet?: FoldingRangeKind[];
|
||||
};
|
||||
/**
|
||||
* Specific options for the folding range.
|
||||
*
|
||||
* @since 3.17.0
|
||||
*/
|
||||
foldingRange?: {
|
||||
/**
|
||||
* If set, the client signals that it supports setting collapsedText on
|
||||
* folding ranges to display custom labels instead of the default text.
|
||||
*
|
||||
* @since 3.17.0
|
||||
*/
|
||||
collapsedText?: boolean;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Client workspace capabilities specific to folding ranges
|
||||
*
|
||||
* @since 3.18.0
|
||||
* @proposed
|
||||
*/
|
||||
export interface FoldingRangeWorkspaceClientCapabilities {
|
||||
/**
|
||||
* Whether the client implementation supports a refresh request sent from the
|
||||
* server to the client.
|
||||
*
|
||||
* Note that this event is global and will force the client to refresh all
|
||||
* folding ranges currently shown. It should be used with absolute care and is
|
||||
* useful for situation where a server for example detects a project wide
|
||||
* change that requires such a calculation.
|
||||
*
|
||||
* @since 3.18.0
|
||||
* @proposed
|
||||
*/
|
||||
refreshSupport?: boolean;
|
||||
}
|
||||
export interface FoldingRangeOptions extends WorkDoneProgressOptions {
|
||||
}
|
||||
export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
|
||||
}
|
||||
/**
|
||||
* Parameters for a {@link FoldingRangeRequest}.
|
||||
*/
|
||||
export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResultParams {
|
||||
/**
|
||||
* The text document.
|
||||
*/
|
||||
textDocument: TextDocumentIdentifier;
|
||||
}
|
||||
/**
|
||||
* A request to provide folding ranges in a document. The request's
|
||||
* parameter is of type {@link FoldingRangeParams}, the
|
||||
* response is of type {@link FoldingRangeList} or a Thenable
|
||||
* that resolves to such.
|
||||
*/
|
||||
export declare namespace FoldingRangeRequest {
|
||||
const method: 'textDocument/foldingRange';
|
||||
const messageDirection: MessageDirection;
|
||||
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
|
||||
type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
|
||||
}
|
||||
/**
|
||||
* @since 3.18.0
|
||||
* @proposed
|
||||
*/
|
||||
export declare namespace FoldingRangeRefreshRequest {
|
||||
const method: `workspace/foldingRange/refresh`;
|
||||
const messageDirection: MessageDirection;
|
||||
const type: ProtocolRequestType0<void, void, void, void>;
|
||||
type HandlerSignature = RequestHandler0<void, void>;
|
||||
}
|
||||
Reference in New Issue
Block a user