source.fixAll: true removes unreachable code #159599
Labels
*as-designed
Described behavior is as designed
editor-code-actions
Editor inplace actions (Ctrl + .)
javascript
JavaScript support issues
typescript
Typescript support issues
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
AFAICT, VSCode should not delete code like this. Yes, I could "source.fixAll": false, but this would interfere with real autofixes.
Also, there's no hint to be seen, that anything might be wrong with the code - Ctrl-. shows "No code actions available". The "fix" cannot be disabled.
BTW, is there any documentation, what "source.fixAll" is supposed to do without any extension that makes use of it?
Obviously this is a very annoying bug, since you cannot simply "disable" following parts of the code for testing.
The text was updated successfully, but these errors were encountered: