CodeEditApp/CodeEdit

๐Ÿž deleteConfimartion alert shows incorrect count when deleting a nested folder

plbstl opened this issue ยท 1 comments

Description

When I was working on #1694, I noticed that the deleteConfimartion alert shows incorrect count when deleting a nested folder. This happens on the main branch.

It can resolved by scanning the directory recursively instead of doing a shallow search. fileManager.contentsOfDirectory is currently used to retrieve file count

To Reproduce

  1. Open a project in CodeEdit
  2. Right click a nested folder
  3. Click on Delete

Expected Behavior

Should show the correct number of items that are going to be deleted

Version Information

CodeEdit: 0.1.0-alpha
macOS: 14.4.1
Xcode: 15.3

Additional Context

No response

Screenshots

context menu delete alert

working on this