Roo-Code/webview-ui
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
..
.storybook Additional @shadcn/ui components 2025-02-14 23:41:39 -08:00
public Remove CRA cruft 2025-01-30 14:38:41 -08:00
src feat read file range (#1440) 2025-03-20 00:55:47 -04:00
.eslintrc.json Stabilize tests in CI 2025-02-23 02:28:10 -08:00
.gitignore PR cleanup 2025-03-12 11:23:06 -04:00
.npmrc Improved logic for auto-approving chained commands 2024-12-26 22:45:09 -08:00
components.json Remove lucide 2025-01-30 14:47:59 -08:00
index.html Roo Cline -> Roo Code 2025-01-29 21:21:20 +07:00
jest.config.cjs Add i18n 2025-03-12 11:23:06 -04:00
package-lock.json Add text-to-speech functionality (#1412) 2025-03-18 01:47:16 -04:00
package.json perf: optimize build process for parallel execution (#1801) 2025-03-19 01:15:55 -07:00
tsconfig.json Merged with main branch 2025-02-06 12:44:22 +05:30
vite.config.ts perf: optimize build process for parallel execution (#1801) 2025-03-19 01:15:55 -07:00