MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / writeThroughGlobalConfigCache

Function writeThroughGlobalConfigCache

source code/utils/config.ts:1041–1044  ·  view source on GitHub ↗
(config: GlobalConfig)

Source from the content-addressed store, hash-verified

1039// the file's real mtime (Date.now() is recorded after the write) so the
1040// freshness watcher skips re-reading our own write on its next tick.
1041function writeThroughGlobalConfigCache(config: GlobalConfig): void {
1042 globalConfigCache = { config, mtime: Date.now() }
1043 lastReadFileStats = null
1044}
1045
1046export function getGlobalConfig(): GlobalConfig {
1047 if (process.env.NODE_ENV === 'test') {

Callers 2

saveGlobalConfigFunction · 0.85
saveCurrentProjectConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected