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

Inline Comment Feature is Including Unselected Code #339

Open runjinz opened 4 months ago

runjinz commented 4 months ago

Hello team,

I've encountered an issue with the inline comment functionality where the generated comments include code that was not selected. This seems to happen in certain modes and provides a suboptimal experience.

Steps to Reproduce

  1. Enter the specific mode where the issue is observed.
  2. Select a portion of code to comment on.
  3. Generate an inline comment.

Expected Behavior

The comment generated should strictly include only the selected piece of code.

Actual Behavior

The generated comment includes both the selected code and additional, unselected code snippets.

This issue does not occur consistently across all modes but has negatively impacted the user experience where it does appear. Looking forward to a solution or any workaround that might be available.

Thank you for addressing this issue.

img_v3_029t_378db743-01eb-4855-8155-0bb55873569g