Skip to content

Append display attributes to doc comments #32

Description

@JustSimplyKyle

Essentially, generates a doc comment containg what's in the display when expanding the macro.

HtmlParsingError = {
    #[display("Fails to parse html. Reason: Lack of node id from vdom")]
    /// Fails to parse html. Reason: Lack of node id from vdom
    LackOfNodeid,
};

This allows the lsp to provide a best effort explanation of the error without needing to go to source.

Image

Of course, if the user manually provides the doc comment, use that instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions