Skip to content

Commit

Permalink
Sort files in a directory when loading all files
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Nov 28, 2023
1 parent a3d02be commit 47e31ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lsp/src/main/java/workspace/LSPWorkspaceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import java.nio.file.Paths;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
Expand Down Expand Up @@ -421,6 +422,7 @@ private void loadProjectFiles(File root) throws IOException
{
FilenameFilter filter = getFilenameFilter();
File[] files = root.listFiles();
Arrays.sort(files); // Predictable order
List<File> ignored = new Vector<File>();

for (File file: files)
Expand Down

0 comments on commit 47e31ed

Please sign in to comment.