Skip to content

Support middleware for logMessage and showMessage #1131

Open

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.

Activity

  1. dbaeumer commented on Nov 29, 2022

    @dbaeumer
    Member

    This is currently not possible since there is no middleware for these messages

  2. 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
  3. added
    help wanted
    on Dec 9, 2022
  4. added
    feature-request
    and removed on Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthelp wanted

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions