Theia API Documentation v1.65.0
    Preparing search index...
    • Creates a file system watcher.

      A glob pattern that filters the file events on their absolute path must be provided. Optionally, flags to ignore certain kinds of events can be provided. To stop listening to events the watcher must be disposed.

      Note that only files within the current workspace folders can be watched.

      Parameters

      • globPattern: GlobPattern

        A glob pattern that is applied to the absolute paths of created, changed, and deleted files. Use a relative pattern to limit events to a certain workspace folder.

      • OptionalignoreCreateEvents: boolean

        Ignore when files have been created.

      • OptionalignoreChangeEvents: boolean

        Ignore when files have been changed.

      • OptionalignoreDeleteEvents: boolean

        Ignore when files have been deleted.

      Returns FileSystemWatcher

      A new file system watcher instance.