mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 18:14:29 -07:00
fix(ui): make tool confirmations take up entire terminal height (#22366)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -232,7 +232,7 @@ describe('ToolConfirmationMessage', () => {
|
||||
unmount();
|
||||
});
|
||||
|
||||
it('should render multiline shell scripts with correct newlines and syntax highlighting (SVG snapshot)', async () => {
|
||||
it('should render multiline shell scripts with correct newlines and syntax highlighting', async () => {
|
||||
const confirmationDetails: SerializableConfirmationDetails = {
|
||||
type: 'exec',
|
||||
title: 'Confirm Multiline Script',
|
||||
@@ -628,6 +628,83 @@ describe('ToolConfirmationMessage', () => {
|
||||
unmount();
|
||||
});
|
||||
|
||||
describe('height allocation and layout', () => {
|
||||
it('should expand to available height for large exec commands', async () => {
|
||||
let largeCommand = '';
|
||||
for (let i = 1; i <= 50; i++) {
|
||||
largeCommand += `echo "Line ${i}"\n`;
|
||||
}
|
||||
|
||||
const confirmationDetails: SerializableConfirmationDetails = {
|
||||
type: 'exec',
|
||||
title: 'Confirm Execution',
|
||||
command: largeCommand.trimEnd(),
|
||||
rootCommand: 'echo',
|
||||
rootCommands: ['echo'],
|
||||
};
|
||||
|
||||
const { waitUntilReady, lastFrame, generateSvg, unmount } =
|
||||
await renderWithProviders(
|
||||
<ToolConfirmationMessage
|
||||
callId="test-call-id"
|
||||
confirmationDetails={confirmationDetails}
|
||||
config={mockConfig}
|
||||
getPreferredEditor={vi.fn()}
|
||||
availableTerminalHeight={40}
|
||||
terminalWidth={80}
|
||||
/>,
|
||||
);
|
||||
await waitUntilReady();
|
||||
|
||||
const outputLines = lastFrame().split('\n');
|
||||
// Should use the entire terminal height minus 1 line for the "Press Ctrl+O to show more lines" hint
|
||||
expect(outputLines.length).toBe(39);
|
||||
|
||||
await expect({ lastFrame, generateSvg }).toMatchSvgSnapshot();
|
||||
unmount();
|
||||
});
|
||||
|
||||
it('should expand to available height for large edit diffs', async () => {
|
||||
// Create a large diff string
|
||||
let largeDiff = '--- a/file.ts\n+++ b/file.ts\n@@ -1,10 +1,15 @@\n';
|
||||
for (let i = 1; i <= 20; i++) {
|
||||
largeDiff += `-const oldLine${i} = true;\n`;
|
||||
largeDiff += `+const newLine${i} = true;\n`;
|
||||
}
|
||||
|
||||
const confirmationDetails: SerializableConfirmationDetails = {
|
||||
type: 'edit',
|
||||
title: 'Confirm Edit',
|
||||
fileName: 'file.ts',
|
||||
filePath: '/file.ts',
|
||||
fileDiff: largeDiff,
|
||||
originalContent: 'old',
|
||||
newContent: 'new',
|
||||
isModifying: false,
|
||||
};
|
||||
|
||||
const { waitUntilReady, lastFrame, generateSvg, unmount } =
|
||||
await renderWithProviders(
|
||||
<ToolConfirmationMessage
|
||||
callId="test-call-id"
|
||||
confirmationDetails={confirmationDetails}
|
||||
config={mockConfig}
|
||||
getPreferredEditor={vi.fn()}
|
||||
availableTerminalHeight={40}
|
||||
terminalWidth={80}
|
||||
/>,
|
||||
);
|
||||
await waitUntilReady();
|
||||
|
||||
const outputLines = lastFrame().split('\n');
|
||||
// Should use the entire terminal height minus 1 line for the "Press Ctrl+O to show more lines" hint
|
||||
expect(outputLines.length).toBe(39);
|
||||
|
||||
await expect({ lastFrame, generateSvg }).toMatchSvgSnapshot();
|
||||
unmount();
|
||||
});
|
||||
});
|
||||
|
||||
describe('ESCAPE key behavior', () => {
|
||||
beforeEach(() => {
|
||||
vi.useFakeTimers();
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
*/
|
||||
|
||||
import type React from 'react';
|
||||
import { useEffect, useMemo, useCallback, useState } from 'react';
|
||||
import { Box, Text } from 'ink';
|
||||
import { useEffect, useMemo, useCallback, useState, useRef } from 'react';
|
||||
import { Box, Text, ResizeObserver, type DOMElement } from 'ink';
|
||||
import { DiffRenderer } from './DiffRenderer.js';
|
||||
import { RenderInline } from '../../utils/InlineMarkdownRenderer.js';
|
||||
import {
|
||||
@@ -85,6 +85,64 @@ export const ToolConfirmationMessage: React.FC<
|
||||
? mcpDetailsExpansionState.expanded
|
||||
: false;
|
||||
|
||||
const [measuredSecurityWarningsHeight, setMeasuredSecurityWarningsHeight] =
|
||||
useState(0);
|
||||
const observerRef = useRef<ResizeObserver | null>(null);
|
||||
|
||||
const deceptiveUrlWarnings = useMemo(() => {
|
||||
const urls: string[] = [];
|
||||
if (confirmationDetails.type === 'info' && confirmationDetails.urls) {
|
||||
urls.push(...confirmationDetails.urls);
|
||||
} else if (confirmationDetails.type === 'exec') {
|
||||
const commands =
|
||||
confirmationDetails.commands && confirmationDetails.commands.length > 0
|
||||
? confirmationDetails.commands
|
||||
: [confirmationDetails.command];
|
||||
for (const cmd of commands) {
|
||||
const matches = cmd.match(/https?:\/\/[^\s"'`<>;&|()]+/g);
|
||||
if (matches) urls.push(...matches);
|
||||
}
|
||||
}
|
||||
|
||||
const uniqueUrls = Array.from(new Set(urls));
|
||||
return uniqueUrls
|
||||
.map(getDeceptiveUrlDetails)
|
||||
.filter((d): d is DeceptiveUrlDetails => d !== null);
|
||||
}, [confirmationDetails]);
|
||||
|
||||
const deceptiveUrlWarningText = useMemo(() => {
|
||||
if (deceptiveUrlWarnings.length === 0) return null;
|
||||
return `**Warning:** Deceptive URL(s) detected:\n\n${deceptiveUrlWarnings
|
||||
.map(
|
||||
(w) =>
|
||||
` **Original:** ${w.originalUrl}\n **Actual Host (Punycode):** ${w.punycodeUrl}`,
|
||||
)
|
||||
.join('\n\n')}`;
|
||||
}, [deceptiveUrlWarnings]);
|
||||
|
||||
const onSecurityWarningsRefChange = useCallback((node: DOMElement | null) => {
|
||||
if (observerRef.current) {
|
||||
observerRef.current.disconnect();
|
||||
observerRef.current = null;
|
||||
}
|
||||
|
||||
if (node) {
|
||||
const observer = new ResizeObserver((entries) => {
|
||||
const entry = entries[0];
|
||||
if (entry) {
|
||||
const newHeight = Math.round(entry.contentRect.height);
|
||||
setMeasuredSecurityWarningsHeight((prev) =>
|
||||
newHeight !== prev ? newHeight : prev,
|
||||
);
|
||||
}
|
||||
});
|
||||
observer.observe(node);
|
||||
observerRef.current = observer;
|
||||
} else {
|
||||
setMeasuredSecurityWarningsHeight((prev) => (prev !== 0 ? 0 : prev));
|
||||
}
|
||||
}, []);
|
||||
|
||||
const settings = useSettings();
|
||||
const allowPermanentApproval =
|
||||
settings.merged.security.enablePermanentToolApproval &&
|
||||
@@ -216,37 +274,6 @@ export const ToolConfirmationMessage: React.FC<
|
||||
[handleConfirm],
|
||||
);
|
||||
|
||||
const deceptiveUrlWarnings = useMemo(() => {
|
||||
const urls: string[] = [];
|
||||
if (confirmationDetails.type === 'info' && confirmationDetails.urls) {
|
||||
urls.push(...confirmationDetails.urls);
|
||||
} else if (confirmationDetails.type === 'exec') {
|
||||
const commands =
|
||||
confirmationDetails.commands && confirmationDetails.commands.length > 0
|
||||
? confirmationDetails.commands
|
||||
: [confirmationDetails.command];
|
||||
for (const cmd of commands) {
|
||||
const matches = cmd.match(/https?:\/\/[^\s"'`<>;&|()]+/g);
|
||||
if (matches) urls.push(...matches);
|
||||
}
|
||||
}
|
||||
|
||||
const uniqueUrls = Array.from(new Set(urls));
|
||||
return uniqueUrls
|
||||
.map(getDeceptiveUrlDetails)
|
||||
.filter((d): d is DeceptiveUrlDetails => d !== null);
|
||||
}, [confirmationDetails]);
|
||||
|
||||
const deceptiveUrlWarningText = useMemo(() => {
|
||||
if (deceptiveUrlWarnings.length === 0) return null;
|
||||
return `**Warning:** Deceptive URL(s) detected:\n\n${deceptiveUrlWarnings
|
||||
.map(
|
||||
(w) =>
|
||||
` **Original:** ${w.originalUrl}\n **Actual Host (Punycode):** ${w.punycodeUrl}`,
|
||||
)
|
||||
.join('\n\n')}`;
|
||||
}, [deceptiveUrlWarnings]);
|
||||
|
||||
const getOptions = useCallback(() => {
|
||||
const options: Array<RadioSelectItem<ToolConfirmationOutcome>> = [];
|
||||
|
||||
@@ -389,23 +416,36 @@ export const ToolConfirmationMessage: React.FC<
|
||||
|
||||
// Calculate the vertical space (in lines) consumed by UI elements
|
||||
// surrounding the main body content.
|
||||
const PADDING_OUTER_Y = 2; // Main container has `padding={1}` (top & bottom).
|
||||
const MARGIN_BODY_BOTTOM = 1; // margin on the body container.
|
||||
const PADDING_OUTER_Y = 1; // Main container has `paddingBottom={1}`.
|
||||
const HEIGHT_QUESTION = 1; // The question text is one line.
|
||||
const MARGIN_QUESTION_BOTTOM = 1; // Margin on the question container.
|
||||
const SECURITY_WARNING_BOTTOM_MARGIN = 1; // Margin on the securityWarnings container.
|
||||
const SHOW_MORE_LINES_HEIGHT = 1; // The "Press Ctrl+O to show more lines" hint.
|
||||
|
||||
const optionsCount = getOptions().length;
|
||||
|
||||
// The measured height includes the margin inside WarningMessage (1 line).
|
||||
// We also add 1 line for the marginBottom on the securityWarnings container.
|
||||
const securityWarningsHeight = deceptiveUrlWarningText
|
||||
? measuredSecurityWarningsHeight + SECURITY_WARNING_BOTTOM_MARGIN
|
||||
: 0;
|
||||
|
||||
const surroundingElementsHeight =
|
||||
PADDING_OUTER_Y +
|
||||
MARGIN_BODY_BOTTOM +
|
||||
HEIGHT_QUESTION +
|
||||
MARGIN_QUESTION_BOTTOM +
|
||||
SHOW_MORE_LINES_HEIGHT +
|
||||
optionsCount +
|
||||
1; // Reserve one line for 'ShowMoreLines' hint
|
||||
securityWarningsHeight;
|
||||
|
||||
return Math.max(availableTerminalHeight - surroundingElementsHeight, 1);
|
||||
}, [availableTerminalHeight, getOptions, handlesOwnUI]);
|
||||
}, [
|
||||
availableTerminalHeight,
|
||||
handlesOwnUI,
|
||||
getOptions,
|
||||
measuredSecurityWarningsHeight,
|
||||
deceptiveUrlWarningText,
|
||||
]);
|
||||
|
||||
const { question, bodyContent, options, securityWarnings, initialIndex } =
|
||||
useMemo<{
|
||||
@@ -547,10 +587,6 @@ export const ToolConfirmationMessage: React.FC<
|
||||
let bodyContentHeight = availableBodyContentHeight();
|
||||
let warnings: React.ReactNode = null;
|
||||
|
||||
if (bodyContentHeight !== undefined) {
|
||||
bodyContentHeight -= 2; // Account for padding;
|
||||
}
|
||||
|
||||
if (containsRedirection) {
|
||||
// Calculate lines needed for Note and Tip
|
||||
const safeWidth = Math.max(terminalWidth, 1);
|
||||
@@ -759,7 +795,11 @@ export const ToolConfirmationMessage: React.FC<
|
||||
</Box>
|
||||
|
||||
{securityWarnings && (
|
||||
<Box flexShrink={0} marginBottom={1}>
|
||||
<Box
|
||||
flexShrink={0}
|
||||
marginBottom={1}
|
||||
ref={onSecurityWarningsRefChange}
|
||||
>
|
||||
{securityWarnings}
|
||||
</Box>
|
||||
)}
|
||||
|
||||
+468
@@ -0,0 +1,468 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="920" height="666" viewBox="0 0 920 666">
|
||||
<style>
|
||||
text { font-family: Consolas, "Courier New", monospace; font-size: 14px; dominant-baseline: text-before-edge; white-space: pre; }
|
||||
</style>
|
||||
<rect width="920" height="666" fill="#000000" />
|
||||
<g transform="translate(10, 10)">
|
||||
<text x="0" y="2" fill="#afafaf" textLength="405" lengthAdjust="spacingAndGlyphs">... first 9 lines hidden (Ctrl+O to show) ...</text>
|
||||
<rect x="0" y="17" width="9" height="17" fill="#005f00" />
|
||||
<rect x="9" y="17" width="9" height="17" fill="#005f00" />
|
||||
<text x="9" y="19" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">5</text>
|
||||
<rect x="18" y="17" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="17" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="19" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="17" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="17" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="19" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="17" width="108" height="17" fill="#005f00" />
|
||||
<text x="90" y="19" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> newLine5 = </text>
|
||||
<rect x="198" y="17" width="36" height="17" fill="#005f00" />
|
||||
<text x="198" y="19" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="17" width="9" height="17" fill="#005f00" />
|
||||
<text x="234" y="19" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="34" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="9" y="34" width="9" height="17" fill="#5f0000" />
|
||||
<text x="9" y="36" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">6</text>
|
||||
<rect x="18" y="34" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="34" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="36" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="34" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="34" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="36" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="34" width="108" height="17" fill="#5f0000" />
|
||||
<text x="90" y="36" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> oldLine6 = </text>
|
||||
<rect x="198" y="34" width="36" height="17" fill="#5f0000" />
|
||||
<text x="198" y="36" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="34" width="9" height="17" fill="#5f0000" />
|
||||
<text x="234" y="36" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="51" width="9" height="17" fill="#005f00" />
|
||||
<rect x="9" y="51" width="9" height="17" fill="#005f00" />
|
||||
<text x="9" y="53" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">6</text>
|
||||
<rect x="18" y="51" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="51" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="53" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="51" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="51" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="53" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="51" width="108" height="17" fill="#005f00" />
|
||||
<text x="90" y="53" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> newLine6 = </text>
|
||||
<rect x="198" y="51" width="36" height="17" fill="#005f00" />
|
||||
<text x="198" y="53" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="51" width="9" height="17" fill="#005f00" />
|
||||
<text x="234" y="53" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="68" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="9" y="68" width="9" height="17" fill="#5f0000" />
|
||||
<text x="9" y="70" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">7</text>
|
||||
<rect x="18" y="68" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="68" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="70" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="68" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="68" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="70" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="68" width="108" height="17" fill="#5f0000" />
|
||||
<text x="90" y="70" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> oldLine7 = </text>
|
||||
<rect x="198" y="68" width="36" height="17" fill="#5f0000" />
|
||||
<text x="198" y="70" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="68" width="9" height="17" fill="#5f0000" />
|
||||
<text x="234" y="70" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="85" width="9" height="17" fill="#005f00" />
|
||||
<rect x="9" y="85" width="9" height="17" fill="#005f00" />
|
||||
<text x="9" y="87" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">7</text>
|
||||
<rect x="18" y="85" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="85" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="87" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="85" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="85" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="87" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="85" width="108" height="17" fill="#005f00" />
|
||||
<text x="90" y="87" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> newLine7 = </text>
|
||||
<rect x="198" y="85" width="36" height="17" fill="#005f00" />
|
||||
<text x="198" y="87" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="85" width="9" height="17" fill="#005f00" />
|
||||
<text x="234" y="87" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="102" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="9" y="102" width="9" height="17" fill="#5f0000" />
|
||||
<text x="9" y="104" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">8</text>
|
||||
<rect x="18" y="102" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="102" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="104" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="102" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="102" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="104" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="102" width="108" height="17" fill="#5f0000" />
|
||||
<text x="90" y="104" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> oldLine8 = </text>
|
||||
<rect x="198" y="102" width="36" height="17" fill="#5f0000" />
|
||||
<text x="198" y="104" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="102" width="9" height="17" fill="#5f0000" />
|
||||
<text x="234" y="104" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="119" width="9" height="17" fill="#005f00" />
|
||||
<rect x="9" y="119" width="9" height="17" fill="#005f00" />
|
||||
<text x="9" y="121" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">8</text>
|
||||
<rect x="18" y="119" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="119" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="121" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="119" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="119" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="121" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="119" width="108" height="17" fill="#005f00" />
|
||||
<text x="90" y="121" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> newLine8 = </text>
|
||||
<rect x="198" y="119" width="36" height="17" fill="#005f00" />
|
||||
<text x="198" y="121" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="119" width="9" height="17" fill="#005f00" />
|
||||
<text x="234" y="121" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="136" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="9" y="136" width="9" height="17" fill="#5f0000" />
|
||||
<text x="9" y="138" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">9</text>
|
||||
<rect x="18" y="136" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="136" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="138" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="136" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="136" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="138" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="136" width="108" height="17" fill="#5f0000" />
|
||||
<text x="90" y="138" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> oldLine9 = </text>
|
||||
<rect x="198" y="136" width="36" height="17" fill="#5f0000" />
|
||||
<text x="198" y="138" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="136" width="9" height="17" fill="#5f0000" />
|
||||
<text x="234" y="138" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="153" width="9" height="17" fill="#005f00" />
|
||||
<rect x="9" y="153" width="9" height="17" fill="#005f00" />
|
||||
<text x="9" y="155" fill="#afafaf" textLength="9" lengthAdjust="spacingAndGlyphs">9</text>
|
||||
<rect x="18" y="153" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="153" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="155" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="153" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="153" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="155" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="153" width="108" height="17" fill="#005f00" />
|
||||
<text x="90" y="155" fill="#e5e5e5" textLength="108" lengthAdjust="spacingAndGlyphs"> newLine9 = </text>
|
||||
<rect x="198" y="153" width="36" height="17" fill="#005f00" />
|
||||
<text x="198" y="155" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="234" y="153" width="9" height="17" fill="#005f00" />
|
||||
<text x="234" y="155" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="170" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="172" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">10</text>
|
||||
<rect x="18" y="170" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="170" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="172" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="170" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="170" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="172" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="170" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="172" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine10 = </text>
|
||||
<rect x="207" y="170" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="172" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="170" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="172" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="187" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="189" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">10</text>
|
||||
<rect x="18" y="187" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="187" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="189" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="187" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="187" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="189" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="187" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="189" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine10 = </text>
|
||||
<rect x="207" y="187" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="189" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="187" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="189" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="204" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="206" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">11</text>
|
||||
<rect x="18" y="204" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="204" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="206" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="204" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="204" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="206" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="204" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="206" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine11 = </text>
|
||||
<rect x="207" y="204" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="206" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="204" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="206" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="221" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="223" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">11</text>
|
||||
<rect x="18" y="221" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="221" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="223" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="221" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="221" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="223" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="221" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="223" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine11 = </text>
|
||||
<rect x="207" y="221" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="223" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="221" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="223" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="238" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="240" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">12</text>
|
||||
<rect x="18" y="238" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="238" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="240" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="238" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="238" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="240" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="238" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="240" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine12 = </text>
|
||||
<rect x="207" y="238" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="240" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="238" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="240" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="255" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="257" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">12</text>
|
||||
<rect x="18" y="255" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="255" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="257" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="255" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="255" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="257" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="255" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="257" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine12 = </text>
|
||||
<rect x="207" y="255" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="257" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="255" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="257" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="272" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="274" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">13</text>
|
||||
<rect x="18" y="272" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="272" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="274" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="272" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="272" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="274" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="272" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="274" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine13 = </text>
|
||||
<rect x="207" y="272" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="274" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="272" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="274" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="289" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="291" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">13</text>
|
||||
<rect x="18" y="289" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="289" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="291" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="289" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="289" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="291" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="289" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="291" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine13 = </text>
|
||||
<rect x="207" y="289" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="291" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="289" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="291" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="306" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="308" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">14</text>
|
||||
<rect x="18" y="306" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="306" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="308" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="306" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="306" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="308" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="306" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="308" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine14 = </text>
|
||||
<rect x="207" y="306" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="308" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="306" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="308" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="323" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="325" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">14</text>
|
||||
<rect x="18" y="323" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="323" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="325" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="323" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="323" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="325" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="323" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="325" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine14 = </text>
|
||||
<rect x="207" y="323" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="325" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="323" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="325" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="340" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="342" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">15</text>
|
||||
<rect x="18" y="340" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="340" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="342" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="340" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="340" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="342" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="340" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="342" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine15 = </text>
|
||||
<rect x="207" y="340" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="342" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="340" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="342" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="357" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="359" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">15</text>
|
||||
<rect x="18" y="357" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="357" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="359" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="357" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="357" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="359" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="357" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="359" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine15 = </text>
|
||||
<rect x="207" y="357" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="359" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="357" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="359" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="374" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="376" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">16</text>
|
||||
<rect x="18" y="374" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="374" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="376" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="374" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="374" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="376" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="374" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="376" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine16 = </text>
|
||||
<rect x="207" y="374" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="376" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="374" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="376" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="391" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="393" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">16</text>
|
||||
<rect x="18" y="391" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="391" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="393" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="391" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="391" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="393" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="391" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="393" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine16 = </text>
|
||||
<rect x="207" y="391" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="393" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="391" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="393" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="408" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="410" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">17</text>
|
||||
<rect x="18" y="408" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="408" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="410" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="408" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="408" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="410" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="408" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="410" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine17 = </text>
|
||||
<rect x="207" y="408" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="410" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="408" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="410" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="425" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="427" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">17</text>
|
||||
<rect x="18" y="425" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="425" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="427" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="425" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="425" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="427" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="425" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="427" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine17 = </text>
|
||||
<rect x="207" y="425" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="427" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="425" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="427" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="442" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="444" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">18</text>
|
||||
<rect x="18" y="442" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="442" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="444" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="442" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="442" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="444" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="442" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="444" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine18 = </text>
|
||||
<rect x="207" y="442" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="444" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="442" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="444" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="459" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="461" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">18</text>
|
||||
<rect x="18" y="459" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="459" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="461" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="459" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="459" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="461" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="459" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="461" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine18 = </text>
|
||||
<rect x="207" y="459" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="461" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="459" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="461" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="476" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="478" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">19</text>
|
||||
<rect x="18" y="476" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="476" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="478" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="476" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="476" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="478" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="476" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="478" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine19 = </text>
|
||||
<rect x="207" y="476" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="478" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="476" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="478" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="493" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="495" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">19</text>
|
||||
<rect x="18" y="493" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="493" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="495" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="493" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="493" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="495" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="493" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="495" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine19 = </text>
|
||||
<rect x="207" y="493" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="495" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="493" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="495" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="510" width="18" height="17" fill="#5f0000" />
|
||||
<text x="0" y="512" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">20</text>
|
||||
<rect x="18" y="510" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="27" y="510" width="9" height="17" fill="#5f0000" />
|
||||
<text x="27" y="512" fill="#ff87af" textLength="9" lengthAdjust="spacingAndGlyphs">-</text>
|
||||
<rect x="36" y="510" width="9" height="17" fill="#5f0000" />
|
||||
<rect x="45" y="510" width="45" height="17" fill="#5f0000" />
|
||||
<text x="45" y="512" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="510" width="117" height="17" fill="#5f0000" />
|
||||
<text x="90" y="512" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> oldLine20 = </text>
|
||||
<rect x="207" y="510" width="36" height="17" fill="#5f0000" />
|
||||
<text x="207" y="512" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="510" width="9" height="17" fill="#5f0000" />
|
||||
<text x="243" y="512" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<rect x="0" y="527" width="18" height="17" fill="#005f00" />
|
||||
<text x="0" y="529" fill="#afafaf" textLength="18" lengthAdjust="spacingAndGlyphs">20</text>
|
||||
<rect x="18" y="527" width="9" height="17" fill="#005f00" />
|
||||
<rect x="27" y="527" width="9" height="17" fill="#005f00" />
|
||||
<text x="27" y="529" fill="#d7ffd7" textLength="9" lengthAdjust="spacingAndGlyphs">+</text>
|
||||
<rect x="36" y="527" width="9" height="17" fill="#005f00" />
|
||||
<rect x="45" y="527" width="45" height="17" fill="#005f00" />
|
||||
<text x="45" y="529" fill="#0000ee" textLength="45" lengthAdjust="spacingAndGlyphs">const</text>
|
||||
<rect x="90" y="527" width="117" height="17" fill="#005f00" />
|
||||
<text x="90" y="529" fill="#e5e5e5" textLength="117" lengthAdjust="spacingAndGlyphs"> newLine20 = </text>
|
||||
<rect x="207" y="527" width="36" height="17" fill="#005f00" />
|
||||
<text x="207" y="529" fill="#0000ee" textLength="36" lengthAdjust="spacingAndGlyphs">true</text>
|
||||
<rect x="243" y="527" width="9" height="17" fill="#005f00" />
|
||||
<text x="243" y="529" fill="#e5e5e5" textLength="9" lengthAdjust="spacingAndGlyphs">;</text>
|
||||
<text x="0" y="546" fill="#ffffff" textLength="162" lengthAdjust="spacingAndGlyphs">Apply this change?</text>
|
||||
<rect x="0" y="578" width="9" height="17" fill="#001a00" />
|
||||
<text x="0" y="580" fill="#00cd00" textLength="9" lengthAdjust="spacingAndGlyphs">●</text>
|
||||
<rect x="9" y="578" width="9" height="17" fill="#001a00" />
|
||||
<rect x="18" y="578" width="18" height="17" fill="#001a00" />
|
||||
<text x="18" y="580" fill="#00cd00" textLength="18" lengthAdjust="spacingAndGlyphs">1.</text>
|
||||
<rect x="36" y="578" width="9" height="17" fill="#001a00" />
|
||||
<rect x="45" y="578" width="90" height="17" fill="#001a00" />
|
||||
<text x="45" y="580" fill="#00cd00" textLength="90" lengthAdjust="spacingAndGlyphs">Allow once</text>
|
||||
<rect x="135" y="578" width="153" height="17" fill="#001a00" />
|
||||
<text x="18" y="597" fill="#ffffff" textLength="18" lengthAdjust="spacingAndGlyphs">2.</text>
|
||||
<text x="45" y="597" fill="#ffffff" textLength="198" lengthAdjust="spacingAndGlyphs">Allow for this session</text>
|
||||
<text x="18" y="614" fill="#ffffff" textLength="18" lengthAdjust="spacingAndGlyphs">3.</text>
|
||||
<text x="45" y="614" fill="#ffffff" textLength="243" lengthAdjust="spacingAndGlyphs">Modify with external editor</text>
|
||||
<text x="18" y="631" fill="#ffffff" textLength="18" lengthAdjust="spacingAndGlyphs">4.</text>
|
||||
<text x="45" y="631" fill="#ffffff" textLength="225" lengthAdjust="spacingAndGlyphs">No, suggest changes (esc)</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 36 KiB |
+87
@@ -0,0 +1,87 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="920" height="666" viewBox="0 0 920 666">
|
||||
<style>
|
||||
text { font-family: Consolas, "Courier New", monospace; font-size: 14px; dominant-baseline: text-before-edge; white-space: pre; }
|
||||
</style>
|
||||
<rect width="920" height="666" fill="#000000" />
|
||||
<g transform="translate(10, 10)">
|
||||
<text x="0" y="2" fill="#afafaf" textLength="414" lengthAdjust="spacingAndGlyphs">... first 18 lines hidden (Ctrl+O to show) ...</text>
|
||||
<text x="0" y="19" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="19" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 19"</text>
|
||||
<text x="0" y="36" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="36" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 20"</text>
|
||||
<text x="0" y="53" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="53" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 21"</text>
|
||||
<text x="0" y="70" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="70" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 22"</text>
|
||||
<text x="0" y="87" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="87" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 23"</text>
|
||||
<text x="0" y="104" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="104" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 24"</text>
|
||||
<text x="0" y="121" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="121" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 25"</text>
|
||||
<text x="0" y="138" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="138" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 26"</text>
|
||||
<text x="0" y="155" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="155" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 27"</text>
|
||||
<text x="0" y="172" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="172" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 28"</text>
|
||||
<text x="0" y="189" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="189" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 29"</text>
|
||||
<text x="0" y="206" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="206" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 30"</text>
|
||||
<text x="0" y="223" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="223" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 31"</text>
|
||||
<text x="0" y="240" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="240" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 32"</text>
|
||||
<text x="0" y="257" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="257" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 33"</text>
|
||||
<text x="0" y="274" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="274" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 34"</text>
|
||||
<text x="0" y="291" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="291" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 35"</text>
|
||||
<text x="0" y="308" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="308" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 36"</text>
|
||||
<text x="0" y="325" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="325" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 37"</text>
|
||||
<text x="0" y="342" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="342" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 38"</text>
|
||||
<text x="0" y="359" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="359" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 39"</text>
|
||||
<text x="0" y="376" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="376" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 40"</text>
|
||||
<text x="0" y="393" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="393" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 41"</text>
|
||||
<text x="0" y="410" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="410" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 42"</text>
|
||||
<text x="0" y="427" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="427" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 43"</text>
|
||||
<text x="0" y="444" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="444" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 44"</text>
|
||||
<text x="0" y="461" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="461" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 45"</text>
|
||||
<text x="0" y="478" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="478" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 46"</text>
|
||||
<text x="0" y="495" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="495" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 47"</text>
|
||||
<text x="0" y="512" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="512" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 48"</text>
|
||||
<text x="0" y="529" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="529" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 49"</text>
|
||||
<text x="0" y="546" fill="#00cdcd" textLength="36" lengthAdjust="spacingAndGlyphs">echo</text>
|
||||
<text x="45" y="546" fill="#cdcd00" textLength="81" lengthAdjust="spacingAndGlyphs">"Line 50"</text>
|
||||
<text x="0" y="563" fill="#ffffff" textLength="243" lengthAdjust="spacingAndGlyphs">Allow execution of: 'echo'?</text>
|
||||
<rect x="0" y="595" width="9" height="17" fill="#001a00" />
|
||||
<text x="0" y="597" fill="#00cd00" textLength="9" lengthAdjust="spacingAndGlyphs">●</text>
|
||||
<rect x="9" y="595" width="9" height="17" fill="#001a00" />
|
||||
<rect x="18" y="595" width="18" height="17" fill="#001a00" />
|
||||
<text x="18" y="597" fill="#00cd00" textLength="18" lengthAdjust="spacingAndGlyphs">1.</text>
|
||||
<rect x="36" y="595" width="9" height="17" fill="#001a00" />
|
||||
<rect x="45" y="595" width="90" height="17" fill="#001a00" />
|
||||
<text x="45" y="597" fill="#00cd00" textLength="90" lengthAdjust="spacingAndGlyphs">Allow once</text>
|
||||
<rect x="135" y="595" width="135" height="17" fill="#001a00" />
|
||||
<text x="18" y="614" fill="#ffffff" textLength="18" lengthAdjust="spacingAndGlyphs">2.</text>
|
||||
<text x="45" y="614" fill="#ffffff" textLength="198" lengthAdjust="spacingAndGlyphs">Allow for this session</text>
|
||||
<text x="18" y="631" fill="#ffffff" textLength="18" lengthAdjust="spacingAndGlyphs">3.</text>
|
||||
<text x="45" y="631" fill="#ffffff" textLength="225" lengthAdjust="spacingAndGlyphs">No, suggest changes (esc)</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
+85
-1
@@ -16,6 +16,90 @@ Apply this change?
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`ToolConfirmationMessage > height allocation and layout > should expand to available height for large edit diffs 1`] = `
|
||||
"... first 9 lines hidden (Ctrl+O to show) ...
|
||||
5 + const newLine5 = true;
|
||||
6 - const oldLine6 = true;
|
||||
6 + const newLine6 = true;
|
||||
7 - const oldLine7 = true;
|
||||
7 + const newLine7 = true;
|
||||
8 - const oldLine8 = true;
|
||||
8 + const newLine8 = true;
|
||||
9 - const oldLine9 = true;
|
||||
9 + const newLine9 = true;
|
||||
10 - const oldLine10 = true;
|
||||
10 + const newLine10 = true;
|
||||
11 - const oldLine11 = true;
|
||||
11 + const newLine11 = true;
|
||||
12 - const oldLine12 = true;
|
||||
12 + const newLine12 = true;
|
||||
13 - const oldLine13 = true;
|
||||
13 + const newLine13 = true;
|
||||
14 - const oldLine14 = true;
|
||||
14 + const newLine14 = true;
|
||||
15 - const oldLine15 = true;
|
||||
15 + const newLine15 = true;
|
||||
16 - const oldLine16 = true;
|
||||
16 + const newLine16 = true;
|
||||
17 - const oldLine17 = true;
|
||||
17 + const newLine17 = true;
|
||||
18 - const oldLine18 = true;
|
||||
18 + const newLine18 = true;
|
||||
19 - const oldLine19 = true;
|
||||
19 + const newLine19 = true;
|
||||
20 - const oldLine20 = true;
|
||||
20 + const newLine20 = true;
|
||||
Apply this change?
|
||||
|
||||
● 1. Allow once
|
||||
2. Allow for this session
|
||||
3. Modify with external editor
|
||||
4. No, suggest changes (esc)
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`ToolConfirmationMessage > height allocation and layout > should expand to available height for large exec commands 1`] = `
|
||||
"... first 18 lines hidden (Ctrl+O to show) ...
|
||||
echo "Line 19"
|
||||
echo "Line 20"
|
||||
echo "Line 21"
|
||||
echo "Line 22"
|
||||
echo "Line 23"
|
||||
echo "Line 24"
|
||||
echo "Line 25"
|
||||
echo "Line 26"
|
||||
echo "Line 27"
|
||||
echo "Line 28"
|
||||
echo "Line 29"
|
||||
echo "Line 30"
|
||||
echo "Line 31"
|
||||
echo "Line 32"
|
||||
echo "Line 33"
|
||||
echo "Line 34"
|
||||
echo "Line 35"
|
||||
echo "Line 36"
|
||||
echo "Line 37"
|
||||
echo "Line 38"
|
||||
echo "Line 39"
|
||||
echo "Line 40"
|
||||
echo "Line 41"
|
||||
echo "Line 42"
|
||||
echo "Line 43"
|
||||
echo "Line 44"
|
||||
echo "Line 45"
|
||||
echo "Line 46"
|
||||
echo "Line 47"
|
||||
echo "Line 48"
|
||||
echo "Line 49"
|
||||
echo "Line 50"
|
||||
Allow execution of: 'echo'?
|
||||
|
||||
● 1. Allow once
|
||||
2. Allow for this session
|
||||
3. No, suggest changes (esc)
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`ToolConfirmationMessage > should display multiple commands for exec type when provided 1`] = `
|
||||
"echo "hello"
|
||||
|
||||
@@ -53,7 +137,7 @@ Do you want to proceed?
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`ToolConfirmationMessage > should render multiline shell scripts with correct newlines and syntax highlighting (SVG snapshot) 1`] = `
|
||||
exports[`ToolConfirmationMessage > should render multiline shell scripts with correct newlines and syntax highlighting 1`] = `
|
||||
"echo "hello"
|
||||
for i in 1 2 3; do
|
||||
echo $i
|
||||
|
||||
Reference in New Issue
Block a user