unit-mesh / auto-dev

🧙‍AutoDev: The AI-powered coding wizard with multilingual support 🌐, auto code generation 🏗️, and a helpful bug-slaying assistant 🐞! Customizable prompts 🎨 and a magic Auto Dev/Testing/Document/Agent feature 🧪 included! 🚀
https://ide.unitmesh.cc/
Mozilla Public License 2.0
2.62k stars 303 forks source link

请教:为何 AutoDevEditorListener 始终无法触发自动补全 #197

Closed fonlin closed 1 month ago

fonlin commented 1 month ago

无论如何输入,始终被这一行代码return了 if (commandProcessor.currentCommandName != null) return

phodal commented 1 month ago

有更详细的信息吗,我这补充是 OK 的

fonlin commented 1 month ago

IDE平台是241版本 我将AutoDevEditorListener注册为了editorFactoryListener

然后我在这里打了几行日志,如下 image

启动后无论我怎么编辑代码,控制台仅输出如下日志,看上去是被if (commandProcessor.currentCommandName != null) returnreturn掉了

commandProcessor.currentCommandName == commandProcessor.currentCommandName == Insert Inline Proposal commandProcessor.currentCommandName == Insert Inline Proposal commandProcessor.currentCommandName == Typing commandProcessor.currentCommandName == Typing commandProcessor.currentCommandName == Typing commandProcessor.currentCommandName == Typing commandProcessor.currentCommandName ==

phodal commented 1 month ago

理解了,可是这一块代码是没启用的,是要来 PR 吗。


我们当时参考其他做的补全,没有做模型验证,所以改为 手动触发。

fonlin commented 1 month ago

好的,我也是在学习研究的阶段。你们对这块有新的规划吗?毕竟主流的插件都是实时的自动补全

phodal commented 1 month ago

暂时没有资源,有兴趣可以来贡献