cursorless
cursorless copied to clipboard
Figure out how to handle JSDoc when inserting before a scope
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?
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.