Skip to main content

Module FileWatch

Module FileWatch 

Source
Expand description

file:watch - register a native filesystem watcher for a URI.

VS Code’s DiskFileSystemProvider.watch(resource, opts) sends: Arguments[0] = resource URI (object or path string) Arguments[1] = { recursive: boolean, excludes: string[] }

Returns a numeric token that the caller passes to file:unwatch. The token is stored as the string key in WatcherProvider::RegisterWatcher.

Events flow through FileWatcherProvider$fileWatcher:event gRPC notification → Cocoon → onDidChangeFile extension API.

Statics§

WATCH_HANDLE_SEQ 🔒

Functions§

Fn