Skip to content

Pressing enter does not continue docblock #94

Description

@ianmaddox

Describe the bug
Pressing enter inside a docblock does not continue the docblock. The asterisk is not printed and the cursor moves to the beginning of the line as if it is outside a docblock.

To Reproduce

  1. Start a docblock with /** and press Enter
  2. The cursor is now inside a docblock template. Type some text and press Enter
  3. Notice that the cursor has moved to the beginning of the line and no asterisk was created

docblock not continuing

Expected behavior
A newline and " * " is printed with my cursor at the end of the newly created line.

Code Snippet

/**
  * I'm going to press enter>
Oops, I got a new line with no padded asterisk
  */

Enviroment (please complete the following information):

  • OS: Windows
  • Version 11
  • Language(s) JavaScript

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions