@ia-ccun/code-agent-cli 0.0.47-beta.5 → 0.0.47-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @author: xujianjiang
|
|
3
3
|
* Aicode Tips Extension — 在边框下方、状态栏上方随机显示使用技巧
|
|
4
4
|
*
|
|
5
|
-
* 显示
|
|
5
|
+
* 显示 10 秒后消失,3 秒后显示下一条
|
|
6
6
|
* 技巧列表包含快捷键、命令使用及联系方式提示
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -129,12 +129,12 @@ export default function (pi: ExtensionAPI) {
|
|
|
129
129
|
const coloredTip = `\x1b[38;2;156;200;207m${padRight("tips: " + tip, 60)}\x1b[0m`;
|
|
130
130
|
currentCtx.ui.setWidget("aicode-tips", [coloredTip], { placement: "aboveEditor" });
|
|
131
131
|
|
|
132
|
-
// 自动轮播:
|
|
132
|
+
// 自动轮播:10秒后隐藏,隐藏后3秒显示下一条
|
|
133
133
|
if (isAutoPlaying) {
|
|
134
134
|
autoHideTimeoutId = setTimeout(() => {
|
|
135
135
|
hideTip();
|
|
136
|
-
autoShowTimeoutId = setTimeout(showRandomTip,
|
|
137
|
-
},
|
|
136
|
+
autoShowTimeoutId = setTimeout(showRandomTip, 3000);
|
|
137
|
+
}, 10000);
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
|