We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b046c commit b91adadCopy full SHA for b91adad
1 file changed
src/vs/workbench/services/dialogs/electron-browser/remoteFileDialog.ts
@@ -468,7 +468,9 @@ export class RemoteFileDialog {
468
if (i1.isFolder !== i2.isFolder) {
469
return i1.isFolder ? -1 : 1;
470
}
471
- return i1.label.localeCompare(i2.label);
+ const trimmed1 = this.endsWithSlash(i1.label) ? i1.label.substr(0, i1.label.length - 1) : i1.label;
472
+ const trimmed2 = this.endsWithSlash(i2.label) ? i2.label.substr(0, i2.label.length - 1) : i2.label;
473
+ return trimmed1.localeCompare(trimmed2);
474
});
475
476
if (backDir) {
0 commit comments