You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using source.fixAll: true may remove unreachable code ( microsoft/vscode#159599 )
This issue is tagged "as-designed", but may be very dangerous, as may randomly cut down a part of function of even a file
functionfoo(): never{throw0}foo()// happy debuggingfoo()// disappears on save
Describe the bug
Using
source.fixAll: true
may remove unreachable code ( microsoft/vscode#159599 )This issue is tagged "as-designed", but may be very dangerous, as may randomly cut down a part of function of even a file
Suggested solution
Replace
with
Reproduction
alert("fine"); throw 0; alert("gets deleted") // save 5 times, 2nd alert gets deleted
System Info
Every VSCode version since `1.70.2` (Aug 2022)
Used Package Manager
n/a
Validations
The text was updated successfully, but these errors were encountered: