devchat icon indicating copy to clipboard operation
devchat copied to clipboard

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.

Results 45 devchat issues
Sort by recently updated
recently updated
newest added

![20240519-131652](https://github.com/devchat-ai/devchat/assets/75999237/25e98fae-1285-4ac0-8696-4d9b1c721f81) ![20240519-131658](https://github.com/devchat-ai/devchat/assets/75999237/8a9508f6-a37e-4147-bc84-754a74456cc3)

bug
P0

![20240517-104443](https://github.com/devchat-ai/devchat/assets/75999237/243ca110-8300-4070-a09f-b06a6bb96dd5)

bug
P0

正常情况下,DevChat在函数前会插入CodeLen按钮,比如代码解释、docstring添加等。但某些情况下,似乎不能正常工作,没有对应的按钮展示,添加日志,用于排查没有显示的原因。

**Is your feature request related to a problem? Please describe.** 当前在AI问答结果中使用代码块插入功能时,只能插入整个代码块,无法插入用户选中的部分代码片段,这降低了使用的灵活性。 **Describe the solution you'd like** 希望改进代码块插入功能: 1. 当用户没有选中代码时,保持现有行为,插入整个代码块 2. 当用户选中了代码块中的部分内容时,点击插入按钮只插入选中的部分 **Describe alternatives you've considered** 1. 在代码块旁增加两个按钮,分别用于插入全部和插入选中内容 2. 右键菜单增加选中插入选项 **Additional...

**Is your feature request related to a problem? Please describe.** 当前AI问答结果中,代码块的插入按钮会直接将整个代码块插入到编辑器中。这在只需要代码块中部分代码时造成了不便,用户需要额外进行删除操作。 **Describe the solution you'd like** 希望改进代码块插入功能:当用户选中了代码块中的部分代码片段时,点击插入按钮只插入被选中的代码片段,而不是整个代码块。如果没有选中任何内容,则保持当前行为,插入整个代码块。 **Describe alternatives you've considered** 目前只能手动复制所需的代码片段,或者插入整个代码块后再删除不需要的部分,这增加了操作步骤。 **Additional context** 这个功能可以提高用户在使用AI生成的代码时的效率,特别是当AI生成的代码块较大,而用户只需要其中一小部分时。