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

    Interface FakeFileWatchers

    In-memory file-watching capability for tests.

    interface FakeFileWatchers {
        _emit(
            type: "change" | "create" | "delete",
            uri: string | WatchedUri,
        ): void;
        _watchedPatterns(): readonly string[];
        watch(
            pattern: string | RelativePatternLike,
            options: {
                ignoreChangeEvents: boolean;
                ignoreCreateEvents: boolean;
                ignoreDeleteEvents: boolean;
            },
        ): FileWatcherHandle;
    }

    Hierarchy

    • FileWatcherCapability
      • FakeFileWatchers
    Index
    • Emits a native event to the live watchers whose pattern matches.

      Like the real API, a watcher only hears about a path its pattern selects, and never an event kind it opted out of through the native ignore flags. A watcher registered for '**/*.ts' therefore stays silent for a.md — the fake would otherwise let a test pass while production filtered the event out.

      Parameters

      • type: "change" | "create" | "delete"
      • uri: string | WatchedUri

      Returns void