Skip to content

Inlay hints are shown only in an active window if more than one window displays different areas of the same buffer #4881

@azuk

Description

@azuk

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • I checked FAQ and Troubleshooting sections
  • You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

If I have two frames, or two windows in one frame, displaying different parts of the same Rust code buffer, inlay hints are displayed only in the active window/frame. If the windows/frames display the same region of the buffer, then both of them display the hints.

See the included screenshots.

Image Image

Steps to reproduce

  • Open path.rs from the Rust standard library, or any other large Rust source file
  • Move to a position where inlay hints are shown
  • Open another frame displaying the same buffer
  • Move to another position where different inlay hints are shown

Expected behavior

Inlay hints are shown also in the window/frame that is not active.

Which Language Server did you use?

lsp-rust

OS

Linux

Error callstack

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions