ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
320 stars 93 forks source link

Tree collapses when saving a file #374

Open jonahgreenthal opened 1 month ago

jonahgreenthal commented 1 month ago

Description of the Issue

Suppose I have the tree open to a/b/c/d and I save a/file.txt. Then the tree view collapses to only show a — the directories b/c/d are no longer expanded.

Saving a file should not change the tree state in other directories.

This might be related to #70, but #70 is too vague to be sure.

Steps to Reproduce the Issue

  1. Expand the tree for a set of nested directories.
  2. Edit and save a file in an ancestor directory.
  3. Observe that the directories below the ancestor collapse.

Expected Behavior

The tree view should not change upon saving.

Actual Behavior

The tree view was collapsed upon saving.

Debug Information