mongodb-js / vscode

Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
https://marketplace.visualstudio.com/items?itemName=mongodb.mongodb-vscode
Apache License 2.0
319 stars 54 forks source link

Feature Request: Auto Hide Notitications After 5 - 15 seconds. #379

Open elibroftw opened 2 years ago

elibroftw commented 2 years ago

Feature Request

Title

Detailed Description

image Just another extension that makes me click the x on its constant notifications...

Context

Improves productivity

Possible Implementation

Anemy commented 2 years ago

Hi @elibroftw - Currently VSCode doesn't provide us a way to auto hide notifications after a certain amount of time - https://github.com/Microsoft/vscode/issues/2732

Thanks for bringing this up, it makes sense that these notifications would become cumbersome after you're familiar with the extension. I think we could revisit if these notifications are really necessary and possibly remove them completely, or we could provide a setting in our extension's settings to disable these notifications. Do you have any preferences? I'll ask the team as well.

elibroftw commented 2 years ago

I think you should start with an option to disable successful notifications.

SethFalco commented 2 years ago

or we could provide a setting in our extension's settings to disable these notifications.

I'd favor this option too! I'd be happy to implement it myself later today and see what you all think.

Really, VSC should just have a toast service so we can show toasts to user. (i.e. messages with a timeout that require no particular action)

They seem to be keen on using the status bar for things like that, though.

I guess in their vision, this extension would use the status bar with "Not Connected" or "Connected to {databaseName}".

Perhaps this extension should also contribute a status bar item like this as well? It can have states like the following:

Edit: Just noticed that the status bar thing was already implemented, so this would be achieved very easily by simply persisting the last message in the status bar instead of hiding it after.