Skip to content

Custom method trigger/event listener #351

Description

@Propfend

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

Hello. Congrats for this nice project.

I am in a situation where i would like to build the diagnostics which depends on external prompt from user. I can read this prompt from a global var, but the diagnostics method should also be triggered when the prompt changes.

I do wonder if there is some out of the box way of doing this without workarounds like sending didChange events, registering a different trigger for the method besides the one when buffer content changes, or even registering a method itself, i know that is not the natural way LSP works.

Help

Yes

Implementation help

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions