chatgpt-vscode
chatgpt-vscode copied to clipboard
Code is truncated at the end
Verify it's not a duplicate bug report
- [X] I searched for similar bugs reported on GitHub and nobody has reported a similar issue. Search all issuees.
- [X] I read Troubleshooting guide on Readme and there is not a guide on how to solve my problem.
Describe the Bug
The code returned from ChatGPT in a Vscode editor window is truncated. There are 1 or 2 missing lines at the end. See this piece of code from chatgpt, truncated at the end, compared to original source:
Also, a markdown delimited for code is also left at the beginning. Eg for a Python script, the generated code begins with : ```python
Steps to reproduce: In Genie Editor mode:
- Select code
- Click "Optimize"
- Generated code is truncated at the end. Missing 1 or 2 lines of code.
Please tell us if you have customized any of the extension settings or whether you are using the defaults.
Using default with gpt-4o
Additional context
With ChatGPT Genie AI v0.0.11 on Windows