(name string, watchKind lsproto.WatchKind, hasRelativePatternCapability bool, computeGlobPatterns func(input T) PatternsAndIgnored)
| 172 | } |
| 173 | |
| 174 | func NewWatchedFiles[T any](name string, watchKind lsproto.WatchKind, hasRelativePatternCapability bool, computeGlobPatterns func(input T) PatternsAndIgnored) *WatchedFiles[T] { |
| 175 | return &WatchedFiles[T]{ |
| 176 | id: watcherID.Add(1), |
| 177 | name: name, |
| 178 | watchKind: watchKind, |
| 179 | hasRelativePatternCapability: hasRelativePatternCapability, |
| 180 | computeGlobPatterns: computeGlobPatterns, |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | type Watchers struct { |
| 185 | WatcherID WatcherID |
no test coverage detected