Module document_highlight

Module document_highlight 

Source
Expand description

§============================================================================= textDocument/documentHighlight

Surfaces tsserver’s documentHighlights command so clients like Neovim can show same-buffer highlight spans (read vs write). Tsserver reports every file touched by the symbol, but the LSP request expects highlights scoped to the current document, so we filter on the originating file.

Functions§

handle