aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.47k stars 408 forks source link

CodeWhisperer - indenting new lines bug #3468

Closed Sandbird closed 1 year ago

Sandbird commented 1 year ago

Problem

Steps to reproduce the issue

CodeWhisperer makes weird indent entries all of a sudden. Every time I type a new line, it keeps indenting it wrong. (PHP) This happens while editing a line as well. Just by correcting a single letter, it will move the whole line back 1 tab.

image

Expected behavior

Stop moving the line.

System details

Sandbird commented 1 year ago

This is so annoying. I keep losing undo/redo actions because of this. I go back to see some code I wrote like 2 minutes ago to grab something, and while going forward again it will randomly indent some of that code, and then I lose my history. I've tried every setting possible. Nothing helps

Will-ShaoHua commented 1 year ago

Hi @Sandbird, wondering if you are able to provide me with complete file content so that I can repro this issue on my end, that would be very helpful? Thanks!

Sandbird commented 1 year ago

Hi @Will-ShaoHua , thanks for the reply. I was about to create an example, and then it hit me to try and disable everything I had first from other extensions and leave only AWS....and voila...the bug is gone. Some other extension probably got inline completion on an update it had and i didn't notice. We can close this, i'll find which one it is. Thanks again

Will-ShaoHua commented 1 year ago

No problem @Sandbird, we are actively solving these bad user experience so feel free to open an issue if you see any when using CodeWhisperer! :)

Will-ShaoHua commented 1 year ago

btw if you know which extension is interfering with CodeWhisperer afterward, please let us know so that we can figure out the solution for that, thanks!

Sandbird commented 1 year ago

I just figured it out. It was: ChatGPT - EasyCode https://marketplace.visualstudio.com/items?itemName=EasyCodeAI.chatgpt-gpt4-gpt3-vscode

And it does have Inline Completion (it didn't in the past). Disabling that the indent bug goes way, and AWS works as expected!