Skip to content

LSP: support textDocument/documentSymbol requests #2327

@hstove-stacks

Description

@hstove-stacks

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions