@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface FileWatcherCollection<TUses>

    Records file watchers whose event batches run as Operations. The Module's RegistrationScope owns the watcher, while each callback gets its own Operation ResourceScope and dependency resolver.

    The dependency-declaring overload is listed first: overload resolution takes the first match, and the no-dependency shape would otherwise absorb the call.

    interface FileWatcherCollection<TUses extends ServiceMap = Record<never, never>> {
        add<TMap extends Readonly<Record<string, ServiceToken<unknown>>>>(
            definition: FileWatcherOptions & {
                handle: (
                    context: OperationContext,
                    events: readonly FileWatcherEvent[],
                    injected: Injected<TUses & TMap>,
                ) => void | Promise<void>;
                id: string;
                inject: TMap;
            },
        ): void;
        add(
            definition: FileWatcherOptions & {
                handle: (
                    context: OperationContext,
                    events: readonly FileWatcherEvent[],
                    injected: Injected<TUses>,
                ) => void | Promise<void>;
                id: string;
            },
        ): void;
    }

    Type Parameters

    Index