Roo-Code/src/integrations
Sam Hoang Van 70a476e722
feat read file range (#1440)
* feat read file range

feat: add file truncation with code structure preview

Add configurable line limit for large file handling with source code structure preview. This improves performance and memory usage while maintaining code readability.

Key changes:

Add maxReadFileLine setting (default: 4500) with UI controls
Create efficient line counter utility using streams
Add parseSourceCodeDefinitionsForFile for single file parsing
Show truncation notice with code structure for large files
Add comprehensive tests for new functionality
Move file extensions to shared constant

add line number

pr comment

Return definition ranges from tree-sitter

make treesitter always add line

add line number to rg search

enhance tree siter output & fix test

update snapshot

fix test

* Add translations, tweak range

---------

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-03-20 00:55:47 -04:00
..
diagnostics Merge pull request #996 from qdaxb/optimize_diagnostics 2025-03-09 21:38:03 -04:00
editor Merge pull request #996 from qdaxb/optimize_diagnostics 2025-03-09 21:38:03 -04:00
misc feat read file range (#1440) 2025-03-20 00:55:47 -04:00
terminal Settings tweaks: add terminal & language sections, fix whell scroll in editor tab (#1763) 2025-03-18 00:11:57 -07:00
theme fix: correct VSCode URI 2025-01-15 08:24:21 +11:00
workspace add multiple workspaces support (#1725) 2025-03-18 02:14:39 -04:00