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.
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.