cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Figure out how to handle JSDoc when inserting before a scope

Open pokey opened this issue 2 years ago • 1 comments

If you say "snip funk before class", "drink class", "move funk air before bat", etc, the newly inserted text will appear between the class / function and its leading JSDoc, if one exists. This behaviour results in JSDocs getting separated from the thing that they are documenting, which can actually go unnoticed, if you're not careful

Should we include JSDocs in "funk", "class", etc?

pokey avatar Sep 29 '22 13:09 pokey

I think conceptually this is a similar scenario to things like Python decorators. It seems inconsistent for JSDoc comments to not be treated the same way.

auscompgeek avatar Sep 29 '22 14:09 auscompgeek