-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat: Disable adding large-file via @-mention #3523
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Just some small changes
vscode/webviews/promptEditor/plugins/atMentions/OptionsList.module.css
Outdated
Show resolved
Hide resolved
…dule.css Co-authored-by: Tim Lucas <[email protected]>
This is a great addition, but now the user cannot even use line ranges to narrow the context of the 'too large file'. Thank you |
Please consider this. Line ranges is indeed the feature I use the most to manually gather best context to feed to the model. |
@PriNova @hlhdaiaaii Thanks for raising that issue with us! I've filed an issue for tracking purpose, and will look into supporting range for large files again! #3589 |
CLOSE #3522
A new check has been added to the contextItemMentionNodeDisplayText function. If the contextItem is of type 'file' and has the isTooLarge flag set to true, the context item cannot be added as an @-mention token.
In the Item component, a new warning prop has been added to conditionally apply the .disabled class to the option item. This is used to visually indicate that a large file is disabled and cannot be selected from the context list:
Test plan
Try to @ a large file
You should not be able to add the file