(themeName: ThemeName, resolved?: ResolvedTheme)
| 2488 | } |
| 2489 | |
| 2490 | async applyTheme(themeName: ThemeName, resolved?: ResolvedTheme): Promise<void> { |
| 2491 | const palette = await getColorPalette(themeName === 'auto' ? (resolved ?? 'dark') : themeName); |
| 2492 | currentTheme.setPalette(palette); |
| 2493 | this.setAppState({ theme: themeName }); |
| 2494 | this.updateEditorBorderHighlight(); |
| 2495 | // Force every historical message to re-render so Markdown/Text caches |
| 2496 | // (which hold old ANSI colour codes) are cleared. |
| 2497 | this.state.transcriptContainer.invalidate(); |
| 2498 | this.state.ui.requestRender(true); |
| 2499 | } |
| 2500 | |
| 2501 | refreshTerminalThemeTracking(): void { |
| 2502 | this.stopTerminalThemeTracking(); |
nothing calls this directly
no test coverage detected