Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Deleting collapsed subdirectory breaks tree-view #1005

Closed

Description

@marcoms

Prerequisites

Description

If there is single subdirectory which causes the tree-view to collapse it into a single entry like folder-a/folder-b, if the user attempts to delete it by right clicking and deleting it, the subdirectory is deleted, but the entry is still listed as folder-a/folder-b, when only folder-a exists. Attempting to delete it again using the tree-view gives an error ("The following file couldn't be moved to trash").

Steps to Reproduce

  1. Launch Atom
  2. Ensure tree-view.squashDirectoryNames is true
  3. Create a directory with a single subdirectory
  4. Attempt to delete the collapsed subdirectory through the tree-view UI

Expected behavior: The directory should no longer be collapsed and display only the first directory

Actual behavior: The subdirectory is still listed although it is deleted

Reproduces how often: 100%

Versions

Atom    : 1.13.0-beta8
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0

tree-view version 0.211.1

Additional Information

Collapsing and expanding the parent of the directory refreshes the state and displays properly.

Related #702

Activity

  1. miguelcg commented on Dec 29, 2016

    @miguelcg
    Contributor

    Pull request #1008 opened for this issue, feel free to review it! :)

  2. winstliu commented on Dec 31, 2016

    @winstliu
    Contributor

    Fixed by #1008.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions