Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: system collections are last in the list #298

Merged
merged 2 commits into from
Jun 9, 2021
Merged

Conversation

mmarcon
Copy link
Member

@mmarcon mmarcon commented Jun 8, 2021

Description

To separate system collections from regular collections, we display them last in the list.

image

This PR also includes a minor tweak to the Terraform snippet as one line was not properly indented.

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@@ -59,7 +59,7 @@ export default class DatabaseTreeItem extends vscode.TreeItem
return element;
}

listCollections(): Promise<string[]> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth mentioning that while this can be improved, e.g. with a dedicated type, for the time being, I just made it more correct as dataService.listCollections() returns a list of objects, not a list of strings.

@mmarcon mmarcon requested a review from alenakhineika June 8, 2021 11:55
@mmarcon mmarcon requested a review from Anemy June 8, 2021 13:35
Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! good test updates

@mmarcon mmarcon merged commit dca852c into master Jun 9, 2021
@mmarcon mmarcon deleted the collections-sorting branch June 9, 2021 06:32
@Anemy Anemy mentioned this pull request Jun 16, 2021
@Anemy Anemy mentioned this pull request Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants