Skip to content

🐞 deleteConfimartion alert shows incorrect count when deleting a nested folder #1695

Description

@plbstl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions