cody icon indicating copy to clipboard operation
cody copied to clipboard

fix(edit-buttons): display of insert and copy buttons on non VSCode clients

Open ichim-david opened this issue 9 months ago • 0 comments

  • Since non VSCode clients weren't hiding the buttons under an ellipsis menu, in case there wasn't a smartApply situation the insert and save buttons would have appeared one under the other

In reality this bug didn't trigger in JB ide's such as Webstorm since a reply also gave the smartApply option in which case we would have one button after the other as seen here: https://github.com/sourcegraph/cody/blob/main/vscode/webviews/chat/ChatMessageContent/EditButtons.tsx#L159 however this fixes a potential situation as seen in the RichCodeBlocks storybook stories.

Here was the issue: before-fix

and here is how it looks with the fix: insert-save-buttons-fix

Test plan

  • Inspect the RichCodeBlocks stories and notice that the buttons are one after the other

ichim-david avatar May 04 '25 16:05 ichim-david