devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
340 stars 39 forks source link

Code completion triggers again despite partial acceptance of suggestions #332

Closed yangbobo2021 closed 4 months ago

yangbobo2021 commented 4 months ago

When code completion suggestions are displayed and the user starts typing according to these suggestions without accepting them all, a new code completion process is triggered. Ideally, it should continue to use the previously generated completion suggestions rather than initiating a new completion process. This issue leads to unnecessary computation and can disrupt the user's workflow.

Steps to Reproduce:

  1. Begin typing in an area where code completion is expected.
  2. Once suggestions appear, partially follow the suggestions by typing but do not accept them fully.
  3. Observe that new code completion suggestions are triggered again.

Expected Behavior:

This would enhance the coding experience by reducing redundant computation and making the code completion process more seamless.