Skip to content
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

Copy paste doesn't always work #59

Open
AntonKrug opened this issue Jan 31, 2024 · 7 comments
Open

Copy paste doesn't always work #59

AntonKrug opened this issue Jan 31, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@AntonKrug
Copy link
Contributor

Describe the bug

When i want to copy something from the message, not just the highlighted code block, i allows me to select it, to click COPY, but when I paste it into the editor previous copy shows, or empty lines.

To Reproduce
Steps to reproduce the behavior:

  1. Go to to the prompt and say Say hello
  2. Click on 'Send message'
  3. Select the response: "Hello!"
  4. Right click to show context menu
  5. Left click Copy
  6. The paste it into your editor

Expected behavior
Would like to see the "Hello!" pasted in my editor

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 122
@rjmacarthy
Copy link
Owner

Hello @AntonKrug thank you for the report. Unfortunately, after many attempts in different ways I am struggling to reproduce the issue, my copy and paste works every time. This menu is the generic right-click menu which is built into the editor and not something the extension controls. Do you have this problem elsewhere in Visual Studio Code?

Would adding a copy button to each message help alleviate the issue for you?

Many thanks,

@rjmacarthy rjmacarthy added the bug Something isn't working label Feb 1, 2024
@AntonKrug
Copy link
Contributor Author

If I instruct the model to respond in a code block explicitly then the plugin adds a copy button and that works.

@AntonKrug
Copy link
Contributor Author

Copy paste in code works, but i do not know about any tab/extension where i could select and right click and get copy/paste options anyway, Source control tab and others do not have it, there is copy in Extensions tab and that works exactly as expected, is there a specific plugin/tab you would like me to test it on?

@AntonKrug
Copy link
Contributor Author

image

@AssassinsLament
Copy link

AssassinsLament commented Mar 29, 2024

Ok, I'm having this same exact problem. Right clicking copy/cut/paste on the twinny side window doesn't work (not stating that it's twinny), but if I copy something in the editor on the right, and control-v into the "Message twinny" box, it will paste into there, but if I right click and paste it in there, nothing is pasted. It seems like that twinny side window isn't capturing the commands. Now if I move to a different side bar/window, like the extensions or search or even the file/folders tab, copy and paste work fine. It's just the twinny tab.

edit: Another weird thing is that most of the time when I right click paste in the twinny message box, nothing happens, but if i copy and paste, after a while, if i go back to right click paste in the twinny message box, it will paste in the terminal. But that doesn't happen all the time... so it's like it's confused at which section of vscode has the focus.

Oh, thank you for this extension by the way, loving it... was looking for a simple, not so in your face extension for code, and this one is perfect!

@AssassinsLament
Copy link

GIF 3-28-2024 8-11-38 PM

@rjmacarthy
Copy link
Owner

Hmm, strange issue, maybe a react rendering issue. Will need to investigate further soon. Thanks for the kind words! ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants