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

Open
#2,423 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
66/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
desktop

Research direction

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.

Written by the indexing model from the issue text.

Description

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. / 我已从报告中移除敏感信息和个人数据。
Dominant language
TypeScript
Stars
1.8k
Forks
151
Avg merge
3h 48m
Merged PRs (30d)
571

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 1lck/Lithe-IDEA

All issues in 1lck/Lithe-IDEA

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.