lannonbr / vscode-js-annotations

Javascript / Typescript Parameter Annotations for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=lannonbr.vscode-js-annotations
MIT License
106 stars 16 forks source link

Option to annotate only boolean or number literal arguments #77

Open golopot opened 5 years ago

golopot commented 5 years ago

I want an option to annotate only when the argument is uninformative boolean literals like true, false, 0, 1, 2. These cases are where this extension is most needed. Targeting only cases can provide a good balance between "annotate everything and lots of spaces" and "annotate only selected things and takes less spaces."

f(cat, 0); // annotate only `0`
f(cat, true);

f(cat, shouldUpdate); // no need for annotation (in some opinion)