intellism / vscode-comment-translate

vscode 注释翻译插件, 不干扰正常代码,方便快速阅读源码。
https://marketplace.visualstudio.com/items?itemName=intellsmi.comment-translate
MIT License
481 stars 75 forks source link

显示翻译进度 Display progress #187

Closed weihongliang233 closed 7 months ago

weihongliang233 commented 9 months ago

目前为止,当我们执行 translateAllComment 的时候,会先解析文档找出注释,然后再把注释数组整个翻译完之后,再去替换原文,整个过程中好像没有明显的进度提示。处理长文档多段注释的时候,其行为表现得就好像完全没反应,我第一次使用的时候甚至以为是哪里出错了。

So far, when we execute translateAllComment, it first parses the document to find comments. Then, it translates the entire array of comments and finally replaces the original text. Currently, there is no obvious progress indication. When dealing with lengthy documents and multiple comments, it behaves as if there is no response. The first time I used it, I even thought something went wrong.