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

    Interface FileWatcherOptions

    Options for creating a file watcher.

    interface FileWatcherOptions {
        debounceDelay?: number;
        events?: readonly ("change" | "create" | "delete")[];
        ignorePatterns?: readonly string[];
        maxBatchSize?: number;
        maxWait?: number;
        patterns: WatchPattern | readonly WatchPattern[];
        workspaceFolder?: { uri: ResourceUri };
    }
    Index
    debounceDelay?: number

    Debounce delay in milliseconds.

    100
    
    events?: readonly ("change" | "create" | "delete")[]

    Events to watch. Also decides the native ignore*Events flags, so unwanted event kinds never enter the pipeline at all.

    all three
    
    ignorePatterns?: readonly string[]

    Patterns to ignore.

    maxBatchSize?: number

    Once this many distinct files are pending, flush immediately instead of waiting for the debounce window — bounds memory during bursts (git checkout, npm install) where events outpace the window.

    Unbounded by default, and worth knowing what that means: the debounce only fires once the stream goes quiet, so while events keep arriving closer together than debounceDelay nothing is delivered and the pending map keeps one entry per distinct path. A long enough burst therefore delays every listener and holds memory proportional to the number of paths touched. Set this, or FileWatcherOptions.maxWait, whenever the watched glob can see a burst you do not control.

    unbounded
    
    maxWait?: number

    Longest a pending batch may wait, in milliseconds, however busy the stream stays. This is the liveness bound debounceDelay alone cannot give: with it set, a burst that never pauses still delivers every maxWait.

    unboundedthe batch waits for the stream to go quiet
    
    patterns: WatchPattern | readonly WatchPattern[]

    Glob pattern(s) to watch.

    workspaceFolder?: { uri: ResourceUri }

    Base folder for any string pattern (combined into a relative pattern for better performance). Entries that already carry a base are unaffected.