elementary / elementary/code

Unmounting a mount containing a file being edited by Code does not result in a "busy" warning

未关闭
#1,813 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Vala
星标
521
派生
118
平均合并
1 天 8 小时
30 天内合并 PR
14

描述

### What Happened?

Unmounting a mount containing a file being edited by Code does not result in a "busy" warning

### Steps to Reproduce

1. Mount e.g. a USB stick
2. Open a text file on that mount with Code
3. Ensure "Save files when changed" s OFF
4. Make some changes
5. Unmount the mount using Files (latest source)
6. No warning is given that the mount is in use by Code

### Expected Behavior

A user might expect to get a warning in this situation (although other text editors do not hold files open on the mount under similar circumstances either).

Fortunately Code handles the situation gracefully and gives the user the opportunity to save the file elsewhere or remount.

The desired behaviour is uncertain and suggestions are invited.

### OS Version

8.x (Circe)

### OS Architecture

amd64 (on most hardwares)

### Session Type

Secure Session (Wayland, This is the default)

### Software Version

Early Access or Compiled from git

### Log Output

```shell

```

### Hardware Info

_No response_

贡献指南

打开贡献指南

调研方向

首先,使用 Files 和 Code,在已挂载的 USB 闪存盘上打开一个未保存的文件,复现该场景。明确是否需要警告,然后确定卸载警告的入口点,并围绕已达成一致的行为和回归测试定义完成标准。

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

评估

领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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