Commit 70a476e
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 <[email protected]>1 parent f181da1 commit 70a476e
File tree
51 files changed
+1624
-331
lines changed- locales
- ca
- de
- es
- fr
- hi
- it
- ja
- ko
- pl
- pt-BR
- tr
- vi
- zh-CN
- zh-TW
- src
- core
- __tests__
- assistant-message
- prompts
- __tests__/__snapshots__
- tools
- webview
- __tests__
- exports
- integrations/misc
- __tests__
- services
- ripgrep
- tree-sitter
- __tests__
- webview-ui/src
- components/settings
- context
- __tests__
- i18n/locales
- ca
- de
- en
- es
- fr
- hi
- it
- ja
- ko
- pl
- pt-BR
- tr
- vi
- zh-CN
- zh-TW
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+1624
-331
lines changedLarge diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments