File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
packages/webview/src/component/pods Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ import { SvelteMap } from 'svelte/reactivity';
88import NoLogIcon from ' /@/component/icons/NoLogIcon.svelte' ;
99import { detectJsonLogs } from ' /@/component/terminal/json-colorizer' ;
1010import {
11- ansi256Colours ,
12- colorizeJSON ,
13- colorizeLogLevel ,
14- colourizedANSIContainerName ,
11+ ansi256Colours ,
12+ colorizeJSON ,
13+ colorizeLogLevel ,
14+ colourizedANSIContainerName ,
1515} from ' /@/component/terminal/terminal-colors' ;
1616import TerminalWindow from ' /@/component/terminal/TerminalWindow.svelte' ;
1717import { Streams } from ' /@/stream/streams' ;
@@ -109,10 +109,8 @@ const calculatePrefixLength = (): number => {
109109};
110110
111111/**
112- * Calculates the maximum container name length for padding prefixes in multi-container
113- * pods so that log lines align correctly.
114- *
115- * @returns Max container name length for prefix padding
112+ + * Sets up ANSI color mappings for container name prefixes in multi-container pods.
113+ + * Cycles through available colors using modulo when there are more containers than colors.
116114 */
117115const setupPrefixColours = (): void => {
118116 object .spec ?.containers .forEach ((container , index ) => {
You can’t perform that action at this time.
0 commit comments