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

Method Close

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

Source from the content-addressed store, hash-verified

1407}
1408
1409func (s *Session) Close() {
1410 // Cancel any pending scheduled snapshot update
1411 s.cancelScheduledSnapshotUpdate()
1412 // Cancel any pending diagnostics refresh
1413 s.cancelDiagnosticsRefresh()
1414 // Cancel any pending auto-import cache warming
1415 s.cancelWarmAutoImportCache()
1416 // Cancel any pending idle cache clean
1417 s.cancelIdleCacheClean()
1418 // Cancel periodic performance telemetry
1419 s.stopPerformanceTelemetry()
1420 s.backgroundQueue.Close()
1421}
1422
1423func (s *Session) flushChanges(ctx context.Context) (FileChangeSummary, map[tspath.Path]*Overlay, map[tspath.Path]*ATAStateChange, *lsutil.UserPreferences) {
1424 s.pendingFileChangesMu.Lock()

Callers 1

Calls 6

cancelIdleCacheCleanMethod · 0.95
CloseMethod · 0.65

Tested by 1