microsoft/vscode-languageserver-node

Support middleware for logMessage and showMessage

Ouverte

#1 131 ouverte le 3 oct. 2022

 (1 commentaire) (0 réaction) (1 personne assignée)TypeScript (397 forks)auto 404
feature-requesthelp wanted

Métriques du dépôt

Stars
 (1 776 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur