You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support middleware for logMessage and showMessage #1131
Hi. I'm looking for an idiomatic way to intercept a server-initiated notification (say window/logMessage) to hook some custom functionality. The only related example I could find uses a middleware to intercept the client-initiated request, which does not seem applicable in this case. Notice that, in my case, I would need to keep forward the notification to the client so that the notification is handled as usual. Any pointer would be appreciated.
changed the title [-][LSP] Example on how to intercept a server-initiated notification (`window/logMessage`)[/-][+]Support middleware for logMessage and showMessage[/+]on Nov 29, 2022
Activity
dbaeumer commentedon Nov 29, 2022
This is currently not possible since there is no middleware for these messages
[-][LSP] Example on how to intercept a server-initiated notification (`window/logMessage`)[/-][+]Support middleware for logMessage and showMessage[/+]