microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
297 stars 28 forks source link

Generated inline code (requested via chat, i.e. CMD+I) inserting hexadecimal limiting comments #277

Open chrisstuartparry opened 1 year ago

chrisstuartparry commented 1 year ago

Working in a .py file, I requested Copilot (via CMD+I) to generate new plt.hist histograms based on existing highlighted code. This worked, but the generated code also included two extra comments at the start and end: At the start of the generated code: # BEGIN: 7f5d4a1d7c9c And at the end of the generated code: # END: 7f5d4a1d7c9c I haven't attached logs since 1. I don't know where to find them 2. I don't know if they'd be relevant. I can go do this though if it'd be helpful or if it's mandatory.

edit: grammar

ulugbekna commented 1 year ago

Hi @chrisstuartparry ,

Did you encounter this when using inline chat within a (jupyter) notebook?

chrisstuartparry commented 1 year ago

Hi @chrisstuartparry ,

Did you encounter this when using inline chat within a (jupyter) notebook?

Hi, technically yes I think? I was working in a .py file that was originally converted from an .ipynb file, and so it contained # %% a few times.