You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain
Bug description
#3455 inherited a bug from #3404 where it’s possible for inlay hints to be added to the wrong buffer. For example, watch the Magit buffer in this recording:
This is happening because the handler for the async request is operating on whatever the active buffer is.
Steps to reproduce
These two steps must be performed in quick succession:
Open a JavaScript or Rust file while having lsp-javascript-display-hints or lsp-rust-analyzer-server-display-hints (respectively) set to t.
Immediately switch to another buffer.
Expected behavior
Inlay hints are added to the buffer they belong to.