文件操作 - protocol.colorProvider.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts
编辑文件内容
import { RequestHandler } from 'vscode-jsonrpc'; import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types'; import { ProtocolRequestType } from './messages'; import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol'; export interface DocumentColorClientCapabilities { /** * Whether implementation supports dynamic registration. If this is set to `true` * the client supports the new `DocumentColorRegistrationOptions` return value * for the corresponding server capability as well. */ dynamicRegistration?: boolean; } export interface DocumentColorOptions extends WorkDoneProgressOptions { } export interface DocumentColorRegistrationOptions extends TextDocumentRegistrationOptions, StaticRegistrationOptions, DocumentColorOptions { } /** * Parameters for a [DocumentColorRequest](#DocumentColorRequest). */ export interface DocumentColorParams extends WorkDoneProgressParams, PartialResultParams { /** * The text document. */ textDocument: TextDocumentIdentifier; } /** * A request to list all color symbols found in a given text document. The request's * parameter is of type [DocumentColorParams](#DocumentColorParams) the * response is of type [ColorInformation[]](#ColorInformation) or a Thenable * that resolves to such. */ export declare namespace DocumentColorRequest { const method: 'textDocument/documentColor'; const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>; type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>; } /** * Parameters for a [ColorPresentationRequest](#ColorPresentationRequest). */ export interface ColorPresentationParams extends WorkDoneProgressParams, PartialResultParams { /** * The text document. */ textDocument: TextDocumentIdentifier; /** * The color to request presentations for. */ color: Color; /** * The range where the color would be inserted. Serves as a context. */ range: Range; } /** * A request to list all presentation for a color. The request's * parameter is of type [ColorPresentationParams](#ColorPresentationParams) the * response is of type [ColorInformation[]](#ColorInformation) or a Thenable * that resolves to such. */ export declare namespace ColorPresentationRequest { const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>; type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件