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

Method cancelWarmAutoImportCache

internal/project/session.go:528–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526}
527
528func (s *Session) cancelWarmAutoImportCache() {
529 s.warmAutoImportMu.Lock()
530 defer s.warmAutoImportMu.Unlock()
531 if s.warmAutoImportCancel != nil {
532 s.warmAutoImportCancel()
533 s.warmAutoImportCancel = nil
534 }
535}
536
537const idleCacheCleanDelay = 30 * time.Second
538

Callers 5

DidOpenFileMethod · 0.95
DidCloseFileMethod · 0.95
DidChangeFileMethod · 0.95
DidChangeWatchedFilesMethod · 0.95
CloseMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected