microsoft / language-server-protocol

Defines a common protocol for language servers.
https://microsoft.github.io/language-server-protocol/
Creative Commons Attribution 4.0 International
10.95k stars 766 forks source link

Allow server to clear a ShowMessage notifications, via timeout or token #1840

Open mnoah1 opened 8 months ago

mnoah1 commented 8 months ago

When sending a ShowMessage notification, currently the user must clear the message and the protocol does not include a way for the server to clear the message after it has been sent. To give the server more control over these messages, it would be helpful to be able to set a message timeout or provide a way for the server to send a follow-up notification to clear a given message.

There a few possibilities that could be considered: