kisstkondoros / codemetrics

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

Extract function into class refactoring does not work when code metrics is enabled #40

Closed acepero13 closed 6 years ago

acepero13 commented 6 years ago

When code metrics is enabled, and a portion of code is selected the quick fix bulb does not appear, neither pressing Cmd+. When the extension is disabled, the quick fix bulb appears again.

Short video of the problem

kisstkondoros commented 6 years ago

I'm going to investigate it further, but please try setting

"codemetrics.basics.DiagnosticsEnabled": false

for me it solved the problem. I think I'll change the default for this setting or provide an alternative command for refactoring.

kisstkondoros commented 6 years ago

Version vscode-codemetrics@1.9.6 has been published, it turns off the feature flag for the diagnostics by default, therefore solves the problem.