liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 259 forks source link

Problem with multiple list display order in sidebar(SFTP: EXPLORER) #791

Open wangtae opened 4 years ago

wangtae commented 4 years ago

Hello, I'm setting it up after the first installation.

I defined the multiplication context in sftp.json.

However, there is a problem with side bar SFTP: EXPLORER's HOST list not being aligned according to "NAME".

The "NAME" list order in my sftp.json is as follows:

[web1@lcms] / [web1@lcms] /a [web1@lcms] /b [web1@ocms] / [web2@lcms] / [web2@ocms] /

[CTRL + SHIFT + P] > [SFTP: LIST ALL] will display the above order,

but SFTP:EXPLORER in sidebar will display the unintended order as shown below.

[web1@lcms] / [web1@ocms] / [web2@lcms] / [web2@ocms] / [web1@lcms] /a [web1@lcms] /b

Can you check this problem?

wangtae commented 4 years ago

I just found the regularity of the problem.

I'm currently using a relative path to "context." (ex "context": "etc/test")

At this time, the short path depth is printed first on the sidebar(SFTP: EXPLORER).

If I had defined multiple "context" as below,

"etc" "etc/test" "lib" "lib/main/some" "lib/utils"

It will be displayed in the following order on the sidebar(SFTP: EXPLORER).

"etc" <- 1 depth "lib" <- 1 depth "etc/test" <- 2 depth "lib/utils" <- 2 depth "lib/main/some" <- 3 depth