Files
orca/src/shared/terminal-zero-dimensions-diagnostic.ts
T

12 lines
572 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Why: the zero-dimensions diagnostic is emitted by the renderer's PTY connect
// path and later cleared once a hidden pane becomes visible and refits. Keeping
// the message text and its matcher together lets both sites stay in sync.
export function createTerminalZeroDimensionsMessage(cols: number, rows: number): string {
return `Terminal has zero dimensions (${cols}×${rows}). The pane container may not be visible.`
}
export function isTerminalZeroDimensionsDiagnostic(message: string): boolean {
return message.startsWith('Terminal has zero dimensions (')
}