I noticed that, in VSCode, there is no outline available for Clarity contracts. After some digging, it appears that this is supported if we do two things:
- Add
{ capabilities: { documentSymbolProvider: true }} (this is currently false)
- Respond to
textDocument/documentSymbol requests (we currently don't)
I'm not sure how much work this is, but it would be nice to be able to support the outline feature.
Another nice thing is that this would support the @ search prefix in ⌘+t, so you can quickly hop to a symbol.
Basically, for long file it can be a pain to scroll up and down, and these LSP functions would ease that a bit!
I noticed that, in VSCode, there is no
outlineavailable for Clarity contracts. After some digging, it appears that this is supported if we do two things:{ capabilities: { documentSymbolProvider: true }}(this is currently false)textDocument/documentSymbolrequests (we currently don't)I'm not sure how much work this is, but it would be nice to be able to support the
outlinefeature.Another nice thing is that this would support the
@search prefix in⌘+t, so you can quickly hop to a symbol.Basically, for long file it can be a pain to scroll up and down, and these LSP functions would ease that a bit!