MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / applyReloadedTuiConfig

Function applyReloadedTuiConfig

apps/kimi-code/src/tui/commands/reload.ts:37–53  ·  view source on GitHub ↗
(
  host: SlashCommandHost,
  config: TuiConfig,
)

Source from the content-addressed store, hash-verified

35}
36
37export async function applyReloadedTuiConfig(
38 host: SlashCommandHost,
39 config: TuiConfig,
40): Promise<void> {
41 const resolved = config.theme === 'auto'
42 ? (currentTheme.palette === lightColors ? 'light' : 'dark')
43 : undefined;
44 await host.applyTheme(config.theme, resolved);
45 host.refreshTerminalThemeTracking();
46 host.setAppState({
47 editorCommand: config.editorCommand,
48 disablePasteBurst: config.disablePasteBurst,
49 notifications: config.notifications,
50 upgrade: config.upgrade,
51 });
52 host.state.editor.setDisablePasteBurst(config.disablePasteBurst);
53}
54
55function applyRuntimeConfig(host: SlashCommandHost, config: KimiConfig): void {
56 host.setAppState({

Callers 2

handleReloadTuiCommandFunction · 0.85
handleReloadCommandFunction · 0.85

Calls 4

applyThemeMethod · 0.65
setAppStateMethod · 0.65
setDisablePasteBurstMethod · 0.45

Tested by

no test coverage detected