mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-27 13:34:15 -07:00
perf(ui): optimize text buffer and highlighting for large inputs (#16782)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
@@ -212,13 +212,13 @@ describe('parseInputForHighlighting with Transformations', () => {
|
||||
});
|
||||
|
||||
it('should handle empty transformations array', () => {
|
||||
const line = 'Check out @test.png';
|
||||
const line = 'Check out @test_no_transform.png';
|
||||
const result = parseInputForHighlighting(line, 0, [], 0);
|
||||
|
||||
// Should fall back to default highlighting
|
||||
expect(result).toEqual([
|
||||
{ text: 'Check out ', type: 'default' },
|
||||
{ text: '@test.png', type: 'file' },
|
||||
{ text: '@test_no_transform.png', type: 'file' },
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user