davidderaedt / annotate-extension

Brackets extension to generate JSDoc annotations
MIT License
18 stars 13 forks source link

function code is corrupted #1

Closed redmunds closed 12 years ago

redmunds commented 12 years ago
  1. I start with this code:
function getHand(svgDoc, id)
{
}
  1. If I put IP on line before function definition, I get this:
/**
 * Description
 * @param {type} svgDoc Description
 * @param {type} id Description
 */
function getHand(svgDoc, id)
{
}
  1. But, if I place IP at char 0 on same line as "function getHand(svgDoc, id)", that line of code is removed:
/**
 * Description
 * @param {type} svgDoc Description
 * @param {type} id Description
 */
{
}

Result: My code is corrupted

Expected Result: Code should not be removed. Either comment is added, or nothing.

davidderaedt commented 12 years ago

Fixed with latest version. Thanks!

redmunds commented 12 years ago

Verified fixed. Thanks!