gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.5k stars 760 forks source link

Compatibility with python notebook #142

Closed sharulhafiz closed 1 year ago

sharulhafiz commented 1 year ago

When I use Chatgpt, got the code, click copy, it cause the python notebook to duplicate the cell instead of copying or pasting the code generated with chatgpt. ctrl+c no longer work after that, as each time i presses those buttons, it clone the cells instead. i've since disable the extension.

gencay commented 1 year ago

The ctrl+c event handler is on the vs-code side, not on the extension side. There are known issues with copying text from the sidebar using context menu or ctrl+c.

I just tested on a jupyter notebook, Copy code works fine and copies the correct lines. There is an open issue on the VS-Code side, hopefully it will get resolved soon: https://github.com/microsoft/vscode/issues/141080

This is how I copied the code and it worked pasting inside a notebook:

image

image

sharulhafiz commented 1 year ago

Thanks. I'll close this.