kisstkondoros / codemetrics

VSCode extension which shows the complexity information for TypeScript class members
Other
404 stars 20 forks source link

'Arrow setting' does not work #62

Closed Hypenate closed 6 years ago

Hypenate commented 6 years ago

In the settings, I have disabled the code metrics for the arrow functions. image But when I check in my CodeLens it still counts. image

kisstkondoros commented 6 years ago

If you would like to remove the complexity associated with an arrow function, then set the value of the Arrow Function to 0 (the field in the middle the scrrenshot above). The boolean option is meant for showing / hiding complexity code lenses at arrow functions.

seiftie commented 4 years ago

Still not fixed though. I have the same issue, setting the value to 0 doesn't fix the issue.

kisstkondoros commented 4 years ago

@seiftie I've just tested this and it does work... There was also nothing to be fixed in the first place, perhaps I'm missing something?

In order to hide code lens for arrow functions turn the flag off "codemetrics.basics.MetricsForArrowFunctionsToggled": false To reduce the added complexity of arrow functions to zero, set the following too "codemetrics.nodeconfiguration.ArrowFunction": 0

or in the UI: image