From 09e3a8fc3e0e5cbaf7269262c98c40faf157eea1 Mon Sep 17 00:00:00 2001 From: uptonking Date: Tue, 31 Dec 2024 20:17:12 +0800 Subject: [PATCH] chore: ai write_file then open_file to ensure order --- dev-ing.md | 4 ++-- dev/com-xp/com-showmebug/showmebug-yaoo-work-plan.md | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dev-ing.md b/dev-ing.md index 66feefe5..8746d82c 100644 --- a/dev-ing.md +++ b/dev-ing.md @@ -578,11 +578,11 @@ console.log( - 昨天 - 讨论并调整了端口转发的事件和逻辑,进度50% - - 排查ai打字动画有时仍然出不来的问题,分析了ide-server侧的读写文件逻辑,待会儿讨论下解决方案 + - 昨天又收到反馈ai打字动画有时仍然出不来,定位到了是ide-server侧的读写文件的时序问题,待会儿与老板确定下解决方案 - 今天 - 解决ai打字动画的问题 + - 实现ai改完用户revert后时光机进度条变为黄色的逻辑,需要与ivan确认下action的状态为modified - 增强端口转发的逻辑和体验 - - 开始删除移动文件优化 ## 1230 diff --git a/dev/com-xp/com-showmebug/showmebug-yaoo-work-plan.md b/dev/com-xp/com-showmebug/showmebug-yaoo-work-plan.md index 1d728890..e680b11e 100644 --- a/dev/com-xp/com-showmebug/showmebug-yaoo-work-plan.md +++ b/dev/com-xp/com-showmebug/showmebug-yaoo-work-plan.md @@ -2373,6 +2373,15 @@ const playbackInfo = [ - this.playgroundItem.consumerLayer(data.dockerId); - this.playgroundItemInfo = cloneDeep(layer.playgroundItemInfo); +- Events. ForceRefreshFile + - const isFileExist = await this.currentPlaygroundItem.checkIfThePathExists( + - if (!isFileExist), not exist + - let OTInfo = this.currentPlaygroundItem.playgroundHistoryCRDT.queryEditorOTInfoByPathFromCache( path, ); + - if (fileByte / (1024 * 1024) >= 16), this.transmit('file', fileJson); largeSuffix = 'd42.large' + - this.broadcastAll('file', fileJson, true); + +- +- - - -