From 7b38066f63936f04c118cb2c86124cd33aaf573d Mon Sep 17 00:00:00 2001 From: Alex Weininger Date: Tue, 5 Sep 2023 14:12:59 -0700 Subject: [PATCH] Sort workspace items by id (#746) --- src/tree/workspace/WorkspaceResourceTreeDataProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree/workspace/WorkspaceResourceTreeDataProvider.ts b/src/tree/workspace/WorkspaceResourceTreeDataProvider.ts index af9048e1..bb599e0d 100644 --- a/src/tree/workspace/WorkspaceResourceTreeDataProvider.ts +++ b/src/tree/workspace/WorkspaceResourceTreeDataProvider.ts @@ -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)); } }