Skip to content

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.

1 participant