Skip to content

Commit

Permalink
Fix different workspace folders with same length (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetzge authored Jul 7, 2024
1 parent 5f7fb05 commit bab9f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org.lxtk/src/org/lxtk/DefaultWorkspaceService.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public void setWorkspaceFolders(Collection<WorkspaceFolder> newFolders)
if (newFolders != null && !newFolders.isEmpty())
{
newSortedFolders =
new TreeMap<>(Comparator.comparingInt((String s) -> s.length()).reversed());
new TreeMap<>(Comparator.comparingInt((String s) -> s.length()).thenComparing(
String::compareTo).reversed());
dryRun(newFolders, newSortedFolders);
}

Expand Down

0 comments on commit bab9f9d

Please sign in to comment.