package watcher
- Alphabetic
- Public
- Protected
Type Members
- trait FileWatcher extends AnyRef
- final case class FileWatcherEvent(eventType: EventType, path: Path) extends Product with Serializable
- class PathTrie extends AnyRef
Trie representation of a set of paths
Trie representation of a set of paths
Each path segment is represented by a node in a tree. Can be used to efficiently check if the trie contains a prefix of a given path
- final class ProjectFileWatcher extends FileWatcher with Cancelable
Watch selected files and execute a callback on file events.
Watch selected files and execute a callback on file events.
This class recursively watches selected directories and selected files. File events can be further filtered by the
watchFilerparameter, which can speed by watching for changes by limiting the number of files that need to be hashed.We don't use the LSP dynamic file watcher capability because
1. the glob syntax is not defined in the LSP spec making it difficult to deliver a consistent file watching experience with all editor clients on all operating systems. 2. we may have a lot of file watching events and it's presumably less overhead to get the notifications directly from the OS instead of through the editor via LSP.
Value Members
- object FileWatcherEvent extends java.io.Serializable
- object NoopFileWatcher extends FileWatcher
- object PathTrie
- object ProjectFileWatcher