Skip to content

Commit 50b87df

Browse files
committed
feat: sort envs
1 parent 355f46e commit 50b87df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/workspaces.ts

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const openWorkspace = async (name: string): Promise<void> => {
5757
const getWorkspaceItems = async (): Promise<CoderWorkspaceListItem[]> => {
5858
const images = await getImages()
5959
const envs = await getWorkspaces()
60+
envs.sort((a, b) => (a.name > b.name ? 1 : -1))
6061
return envs.map((w) => new CoderWorkspaceListItem(w, images, vscode.TreeItemCollapsibleState.None))
6162
}
6263

0 commit comments

Comments
 (0)