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.

Creating or deleting a file outside of the Tree View doesn't update the squashed state #1015

Open

Description

@lee-dohm

Prerequisites

Description

This is a special case of #702.

Steps to Reproduce - Deleting a file

  1. Launch Atom in the local Atom repository
  2. Open Settings View and enable "Collapse Directories" in the Tree View settings
  3. Create the following file structure
    • test/test.md
    • test/test2/test.md
  4. Verify test and test2 appear as separate folders in the Tree View
  5. From the command line delete test/test.md

Expected behavior: test and test2 should collapse into one directory enty since test is now empty

Actual behavior: test and test2 remain separate

Steps to Reproduce - Creating a file

  1. Launch Atom in the local Atom repository
  2. Open Settings View and enable "Collapse Directories" in the Tree View settings
  3. Create the following file structure
    • test/test2/test.md
  4. Verify test/test2 appears as a single squashed directory entry in the Tree View
  5. From the command line create the file test/test.md

Expected behavior: test/test2 should expand into test and test2

Actual behavior: test/test2 remains collapsed

Versions

Atom : 1.14.0-dev-9db8fa382
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0

Activity

  1. lee-dohm commented on Jan 4, 2017

    @lee-dohm
    ContributorAuthor

    @miguelcg Do you want to take a stab at this?

  2. miguelcg commented on Jan 4, 2017

    @miguelcg
    Contributor

    Sure I'll do @lee-dohm

  3. miguelcg commented on Jan 7, 2017

    @miguelcg
    Contributor

    I could use a fresh pair of eyes here. The problem is that when enabling tree-view.squashDirectoryNames option the directories tree is recreated and the directories containing only another directory are not created, thus there is nothing watching for that path in the file system listening to events when a file/directory is created/deleted.

    Having said that, I'm not sure how to solve this issue... any help is welcome!

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