79120290

Date: 2024-10-24 03:42:45
Score: 0.5
Natty:
Report link

Based on the issue referenced in @NikoSams answer, you just need to add "allowUnreachableCode": true to your tsconfig.json and it won't automatically remove dead code; you don't need to completely disable fixes on file save.

It's not listed as a setting because the extension at fault is the built-in typescript extension, and it gets its "settings" from your tsconfig.json, if present.

{
    "compilerOptions": {
        "allowUnreachableCode": true,
        ...
    },
    ...
}

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @NikoSams
Posted by: Noah May