MCPcopy
hub / github.com/slopus/happy / push

Function push

packages/codium/sources/theme/presets.ts:216–221  ·  view source on GitHub ↗
(entry: ThemeEntry)

Source from the content-addressed store, hash-verified

214 const out: ThemeEntry[] = []
215 const seen = new Set<string>()
216 const push = (entry: ThemeEntry) => {
217 const key = `${entry.variant}:${entry.codeThemeId}`
218 if (seen.has(key)) return
219 seen.add(key)
220 out.push(entry)
221 }
222 push({ codeThemeId: 'codex', variant: 'light', theme: CODEX_LIGHT_DEFAULT })
223 push({ codeThemeId: 'codex', variant: 'dark', theme: CODEX_DARK_DEFAULT })
224 for (const p of CODEX_THEME_PARTIALS) {

Callers 1

presets.tsFile · 0.70

Calls 3

addMethod · 0.80
pushMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected