MCPcopy Create free account
hub / github.com/microsoft/typescript-go / NewWatchedFiles

Function NewWatchedFiles

internal/project/watch.go:174–182  ·  view source on GitHub ↗
(name string, watchKind lsproto.WatchKind, hasRelativePatternCapability bool, computeGlobPatterns func(input T) PatternsAndIgnored)

Source from the content-addressed store, hash-verified

172}
173
174func 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
184type Watchers struct {
185 WatcherID WatcherID

Callers 3

NewProjectFunction · 0.85
NewSessionFunction · 0.85
newConfigFileEntryFunction · 0.85

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected