文件操作 - protocol.workspaceFolders.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolders.d.ts
编辑文件内容
import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc'; import { ProtocolRequestType0, ProtocolNotificationType } from './messages'; export interface WorkspaceFoldersInitializeParams { /** * The actual configured workspace folders. */ workspaceFolders: WorkspaceFolder[] | null; } export interface WorkspaceFoldersClientCapabilities { /** * The workspace client capabilities */ workspace?: { /** * The client has support for workspace folders * * @since 3.6.0 */ workspaceFolders?: boolean; }; } export interface WorkspaceFoldersServerCapabilities { /** * The workspace server capabilities */ workspace?: { workspaceFolders?: { /** * The Server has support for workspace folders */ supported?: boolean; /** * Whether the server wants to receive workspace folder * change notifications. * * If a strings is provided the string is treated as a ID * under which the notification is registered on the client * side. The ID can be used to unregister for these events * using the `client/unregisterCapability` request. */ changeNotifications?: string | boolean; }; }; } export interface WorkspaceFolder { /** * The associated URI for this workspace folder. */ uri: string; /** * The name of the workspace folder. Used to refer to this * workspace folder in the user interface. */ name: string; } /** * The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders. */ export declare namespace WorkspaceFoldersRequest { const type: ProtocolRequestType0<WorkspaceFolder[] | null, never, void, void>; type HandlerSignature = RequestHandler0<WorkspaceFolder[] | null, void>; type MiddlewareSignature = (token: CancellationToken, next: HandlerSignature) => HandlerResult<WorkspaceFolder[] | null, void>; } /** * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace * folder configuration changes. */ export declare namespace DidChangeWorkspaceFoldersNotification { const type: ProtocolNotificationType<DidChangeWorkspaceFoldersParams, void>; type HandlerSignature = NotificationHandler<DidChangeWorkspaceFoldersParams>; type MiddlewareSignature = (params: DidChangeWorkspaceFoldersParams, next: HandlerSignature) => void; } /** * The parameters of a `workspace/didChangeWorkspaceFolders` notification. */ export interface DidChangeWorkspaceFoldersParams { /** * The actual workspace folder change event. */ event: WorkspaceFoldersChangeEvent; } /** * The workspace folder change event. */ export interface WorkspaceFoldersChangeEvent { /** * The array of added workspace folders */ added: WorkspaceFolder[]; /** * The array of the removed workspace folders */ removed: WorkspaceFolder[]; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件