-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chat): Hide insert and new file buttons if there is no
edit
cap…
…ability (#6018) Currently all clients default to showing the Insert and New file buttons on code snippets in an assistant response, but only editors which support the `edit` capability (i.e. not Eclipse or VS) should show these buttons. This simply hides the action if the capability is not set to `enabled`. ## Test plan Tested this build in Eclipse and saw that only the Copy button was retained, but on main, all three buttons were shown ## Changelog Hide non-functional edit buttons in chat if client does not support the functionality.
- Loading branch information
1 parent
7adae4b
commit ecd0212
Showing
4 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters