Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FileSystemWatcher

A file system watcher notifies about changes to files and folders on disk.

To get an instance of a FileSystemWatcher use createFileSystemWatcher.

Hierarchy

Index

Constructors

constructor

Properties

ignoreChangeEvents

ignoreChangeEvents: boolean

true if this file system watcher has been created such that it ignores change file system events.

ignoreCreateEvents

ignoreCreateEvents: boolean

true if this file system watcher has been created such that it ignores creation file system events.

ignoreDeleteEvents

ignoreDeleteEvents: boolean

true if this file system watcher has been created such that it ignores delete file system events.

onDidChange

onDidChange: Event<Uri>

An event which fires on file/folder change.

onDidCreate

onDidCreate: Event<Uri>

An event which fires on file/folder creation.

onDidDelete

onDidDelete: Event<Uri>

An event which fires on file/folder deletion.

Methods

dispose

  • dispose(): void

Static create

Static from

  • Combine many disposable-likes into one. Use this method when having objects with a dispose function which are not instances of Disposable.

    Parameters

    • Rest ...disposableLikes: object[]

      Objects that have at least a dispose-function member.

    Returns Disposable

    Returns a new disposable which, upon dispose, will dispose all provided disposables.