Hi! While trying to implement https://github.com/rust-analyzer/rust-analyzer/issues/7913 I stumbled upon difficulties describing regions in LSP (needed for
SymbolKind::RegionEnd). Is there a semantic token for region describing?
there isn't appropriate lsp symbol kind for this, I'd just re-used module
printer.mp4 Hope that suits the issue
One thought about this is if we introduce this as a first class feature, we're sort of extending the language by force
That is, if most peoples are using rust-analyzer, then the region marker becomes the de-facto standard to mark regions.
I don't think in this case it matters too much, since I don't think there's any other likely syntax.
agree here! but practicality beats purity -- vscode's in-editor region folding doesnt work if we provide any folds, so we have to provide our own impl. The LSP also has first-class support for region folds