microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.59k stars 29.03k forks source link

Cancellable notifications for extensions #134777

Closed Semesse closed 1 year ago

Semesse commented 3 years ago

We're developing extensions for enterprises, and this problem blocked us two times.
Our extension sends a notification when some actions are available. But once the notifications are sent using vscode.window.showInformationMessage, we cannot close them programmatically anymore. The problem is that these actions are not always available, and if the user clicks on the notification button, we have to send another message telling the user 'this action is no longer available. It's annoying!

The cases are like

We see that PORTS view uses some internal service to close the notification which doesn't expose to extension. Please consider allowing extensions to close notifications to make better user experience 🙏

vscodenpa commented 1 year ago

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding, and happy coding!