Skip to content

lspce-inlay-hints-mode and timers #54

@bestlem

Description

@bestlem

I have found that if lspce-inlay-hints-mode is turned on and with some lsp servers then there are issues when you switch buffers automatically.

To see this I use a mode where lsp provides inlayHintProvider e.g. C (or I have bash and others)
Then run a command that prompts for input in the minibuffer.
the timer will run lspce--jit-lock-update-inlay-hints and thus lspce--jit-lock-do-update-hints.
Unfortunately in some cases lspce--jit-lock-do-update-hints seems to run with the current buffer being the minibuffer and not the buffer that the hints are for. This produces a backtrace.

I have put a (when lspce-mode ... ) around the code in lspce--jit-lock-do-update-hints and it seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions