-
Notifications
You must be signed in to change notification settings - Fork 464
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
Adding Group by schema to OE #17543
Adding Group by schema to OE #17543
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't very discoverable. Have you looking into adding inline action items and/or right click menu item support?
@charles, added a menu item to connection OE tree |
"command": "mssql.objectExplorer.enableGroupBySchema", | ||
"when": "view == objectExplorer && !config.mssql.objectExplorer.groupBySchema", | ||
"title": "%mssql.objectExplorer.enableGroupBySchema%", | ||
"group": "secondary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For VS Code MSSQL seems like it'd be better to have it as a navigation item so it shows up on the title bar. That's a lot easier to see and work with - the secondary menu is still a bit too hidden IMO.
@erinstellato-ms thoughts on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO I don't think people will toggle this setting a lot. Therefore, I am not sure about making it visible all the time. They will either stick with schema tree or regular tree. We can enable this setting by default in the next version and let users disable it if they want to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not like there isn't plenty of room there. And I just think that hiding it in the secondary menu means that most people aren't going to know it exists unless they're really diligent about reading the release notes.
Just seems a shame to put all the work into this feature and then make it difficult for people to discover it. We can always hide the action later if people don't like it there.
@Charles-Gagnon We (@aasimkhan30 and I) talked about how to make it more discoverable. I am planning to collect feedback from users once it is in the Insiders build to see what ideas/suggestions they have. @alanrenmsft in terms of the icon, I honestly did like the one we had, it looked like a b-tree index to me. The new icon is (to me) more intuitive because it has the database + schema. Again, something I was planning to ask for user feedback on. Happy to have a quick chat tomorrow if ya'll want to discuss more! |
As far as the ordering of the schemas - the default |
@alanrenmsft I'm suggesting the inline action button here because we only support MSSQL connections in the VS Code extension. I agree that finding some other way (such as context menu items) for ADS seems reasonable there. |
@alanrenmsft , it is fine to add the settings to connections view here because vscode-MSSQL extension only supports sql server connections |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think you should have this be a primary action on the title bar, but you and the PMs can make that decision.
Co-authored-by: Charles Gagnon <[email protected]>
Menu item:
![image](https://user-images.githubusercontent.com/6816294/218885669-b033b671-b31d-4da6-b352-2ea75e35f6a8.png)
![image](https://user-images.githubusercontent.com/6816294/218885718-96a7f33a-f996-46de-9642-cf5b8e6510f7.png)
When feature enabled:
![image](https://user-images.githubusercontent.com/6816294/218871710-6a8ff97b-9fcc-4cc1-a220-5d1e283b2436.png)
![image](https://user-images.githubusercontent.com/6816294/218871735-7a9d91fc-4558-4863-a612-edbfbc9816cc.png)
When feature disabled:
Setting will auto refresh:
![Code_zRwQATuUar](https://user-images.githubusercontent.com/6816294/218872236-4b326a90-8013-4738-a78c-e0a9d7cb44e2.gif)
GIF:
Light Mode:
![image](https://user-images.githubusercontent.com/6816294/218871937-d1360b94-bdfc-4c56-bb8a-26805beeaa4c.png)
![image](https://user-images.githubusercontent.com/6816294/218871994-76a918b9-678e-42e7-85a0-e8ff1d5feccd.png)
![image](https://user-images.githubusercontent.com/6816294/218872089-f0eea966-077d-4bf8-9012-80424609dfc7.png)
Dark Mode:
HC: