[Bug] 已被打开的文件被外部删除时文件关闭不了,并且导致Lithe IDEA关闭不了

未关闭
#2,423 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
66/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
desktop

调研方向

Start by reproducing the steps on Windows: open a saved file in the editor, delete it outside Lithe IDEA, then try closing its tab and the application. Trace how the editor handles the externally deleted file and its close action. Done means the deleted file's tab can be dismissed and Lithe IDEA can close normally, without recreating the file.

由索引模型根据 Issue 内容生成。

描述

bug issue-form:bug review: medium
Platform / 平台

Windows

Area / 模块

UI / 界面

Lithe version / Lithe 版本

0.8.15

Priority / 优先级

P1 / 尽快处理:使用体验大幅下降,但通常仍可继续使用

OS and architecture / 操作系统与架构

Windows 10 22H2

Environment / 环境信息

No response

Steps to reproduce / 复现步骤
  1. 用Lithe IDEA打开一个项目,在其中新建一个文件,保存;
  2. 在编译器界面打开这个文件,让它在标签栏显示;
  3. 然后在Lithe IDEA之外删除这个文件,例如在文件资源管理器中删除这个文件;
  4. 回到Lithe IDEA,会发现这个文件标签无法关闭,提示“该文件已被外部删除,编辑器内容已保留”,并且提供了两个选项:“允许重新创建文件”、“加载磁盘版本”,选择前者会让重新创建这个文件,但是这个文件本应该被删除才对。如果不选择选项,那么这个文件标签将无法关闭,并且会导致Lithe IDEA无法被关闭
Expected behavior / 预期行为

预期:不在加载和显示被删除的文件,标签栏不再显示这个文件标签,Lithe IDEA可以被正常关闭

Actual behavior / 实际行为

被外部删除的文件标签无法被关闭,Lithe IDEA无法被正常关闭

Logs or diagnostic output / 日志或诊断输出

Screenshots or recordings / 截图或录屏
image
Checklist / 提交前检查
  • I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
  • I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
主要语言
TypeScript
星标
1.8k
派生
151
平均合并
3 小时 48 分钟
30 天内合并 PR
571

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

1lck/Lithe-IDEA 的其他 Issue

查看 1lck/Lithe-IDEA 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。