Collected sources and patterns will appear here. Add from search, explore, or the patterns library.
CompilerSpan -> LSPRange
Map 1-based compiler source spans to 0-based LSP locations while converting UTF-8 compiler byte offsets into UTF-16 code units required by the client protocol.
Problem it solves
Compilers and external editors often use incompatible coordinate schemes and text encoding metrics for identifying ranges of code.
Consumes
Emits
The real projects this mechanism was found in. Attribution is the point — this is how the best teams actually do it.