Skip to content

Commit

Permalink
feat: sort envs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoog committed Mar 7, 2021
1 parent 355f46e commit 50b87df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const openWorkspace = async (name: string): Promise<void> => {
const getWorkspaceItems = async (): Promise<CoderWorkspaceListItem[]> => {
const images = await getImages()
const envs = await getWorkspaces()
envs.sort((a, b) => (a.name > b.name ? 1 : -1))
return envs.map((w) => new CoderWorkspaceListItem(w, images, vscode.TreeItemCollapsibleState.None))
}

Expand Down

0 comments on commit 50b87df

Please sign in to comment.