Watch events enhancements (#57950)

This commit is contained in:
Sheetal Nandi
2024-03-27 13:36:45 -07:00
committed by GitHub
parent 6b4eec4aca
commit c87b5bcab9
6 changed files with 1192 additions and 135 deletions
+5 -4
View File
@@ -1849,13 +1849,13 @@ export interface CloseRequest extends FileRequest {
export interface WatchChangeRequest extends Request {
command: CommandTypes.WatchChange;
arguments: WatchChangeRequestArgs;
arguments: WatchChangeRequestArgs | readonly WatchChangeRequestArgs[];
}
export interface WatchChangeRequestArgs {
id: number;
path: string;
eventType: "create" | "delete" | "update";
created?: string[];
deleted?: string[];
updated?: string[];
}
/**
@@ -2656,6 +2656,7 @@ export interface CreateDirectoryWatcherEventBody {
readonly id: number;
readonly path: string;
readonly recursive: boolean;
readonly ignoreUpdate?: boolean;
}
export type CloseFileWatcherEventName = "closeFileWatcher";