microsoft / vscode-comment

Adds simple jsdoc comments for the parameters of a selected function signature
Other
72 stars 31 forks source link

extra space added. #11

Closed paulirish closed 7 years ago

paulirish commented 7 years ago

Repro: Have a class function like:

  static makeV1TableHeadings(headings) {

  }

Run "Add doc comments." View the result:

  /**
   * @param  {} headings
   */

Note there's an extra space before the curly brackets.

egamma commented 7 years ago

@paulirish I suggest to use built-in JSDoc generation support

jsdoc

paulirish commented 7 years ago

not bad!! alright then, works for me. :)

paulirish commented 7 years ago

The JSDoc snippet does generate some trailing whitespace, however. :)