microsoft/vscode-languageserver-node

Support middleware for logMessage and showMessage

開放

#1,131 建立於 2022年10月3日

 (1 則留言) (0 個反應) (1 位負責人)TypeScript (397 個分叉)auto 404
feature-requesthelp wanted

倉庫指標

星標
 (1,776 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南