Skip to content

[Feature Request] s-docs snippet for svelte component documentation comments #15

@metruzanca

Description

@metruzanca

So apparently you can do jsdoc style doc comments in svelte components. It was an undocumented feature, sveltejs/svelte#7376 (Still not merged when I wrote this issue).

Would be cool to see a s-docs snippet that does something like this:

"Svelte Documentation Comment": {
  "prefix": "s-docs",
  "body": [
    "<!--",
    "  @component",
    "  ${1:This is a component description.}",
    "-->"
  ],
  "description": "Svelte Documentation Comment"
}

On a side note, any thoughts about adding lang="${1:ts}" to the script snippet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions