Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hierarchical document outline via DocumentSymbol #174

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ire4ever1190
Copy link

This uses DocumentSymbol if the client supports it which allows enum/type fields to be shown

proc test() = discard

type
  Something = object
    hello*: tuple[name: string]
  Test = enum
    Colour

Produces

image

I used a function instead of just setting flags since capabilities can have extra values assoicated with them
Guess enums aren't supported which is why the other enum like fields use ints

Should I write PR to add support to JSONSchema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant