Module: Rigor::LanguageServer::BufferResolution

Included in:
CompletionProvider, DocumentSymbolProvider, FoldingRangeProvider, HoverProvider, SelectionRangeProvider, SignatureHelpProvider
Defined in:
lib/rigor/language_server/buffer_resolution.rb

Overview

Shared buffer lookup for the LSP providers.

Every provider’s ‘provide` opens with the same two steps: translate the document URI to an on-disk path, then fetch the open buffer entry from the buffer table — returning nil to the editor when either is missing. The parse step that follows differs per provider (strict vs error-tolerant, whole-buffer vs cursor-recovery), so only this resolution is shared here.