Skip to content

Commit

Permalink
Sort workspace items by id (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger authored Sep 5, 2023
1 parent 7f64887 commit 7b38066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/workspace/WorkspaceResourceTreeDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class WorkspaceResourceTreeDataProvider extends ResourceTreeDataProviderB

// NOTE: Returning zero children indicates to VS Code that is should display a "welcome view".
// The one chosen for display depends on the context set above.
return children;
return children.sort((a, b) => a.id.localeCompare(b.id));
}
}

Expand Down

0 comments on commit 7b38066

Please sign in to comment.