UNPKG

1.02 kBTypeScriptView Raw
1import { RequestHandler, NotificationHandler, WorkspaceEdit, CreateFilesParams, RenameFilesParams, DeleteFilesParams, Disposable } from 'vscode-languageserver-protocol';
2import type { Feature, _RemoteWorkspace } from './server';
3/**
4 * Shape of the file operations feature
5 *
6 * @since 3.16.0
7 */
8export interface FileOperationsFeatureShape {
9 onDidCreateFiles(handler: NotificationHandler<CreateFilesParams>): Disposable;
10 onDidRenameFiles(handler: NotificationHandler<RenameFilesParams>): Disposable;
11 onDidDeleteFiles(handler: NotificationHandler<DeleteFilesParams>): Disposable;
12 onWillCreateFiles(handler: RequestHandler<CreateFilesParams, WorkspaceEdit | null, never>): Disposable;
13 onWillRenameFiles(handler: RequestHandler<RenameFilesParams, WorkspaceEdit | null, never>): Disposable;
14 onWillDeleteFiles(handler: RequestHandler<DeleteFilesParams, WorkspaceEdit | null, never>): Disposable;
15}
16export declare const FileOperationsFeature: Feature<_RemoteWorkspace, FileOperationsFeatureShape>;