These are code samples to go along with my An intro to the Scala Presentation
Compiler
blog post. They are small standalone examples of how to mimic the LSP
textDocument/selectionRange
feature from
Metals.
You can try out the example by simply running each module via Mill.
For the Scala 3 example
./mill scala-3-presentation-compiler-examples.runFor the Scala 2 example
./mill scala-2-presentation-compiler-examples.runThese will print out the selection ranges for the code provided in the
ourScalaCode variable in each of the SelectionRanges.scala files.