1

Hide deprecated warning

Does anyone know if there is any way to hide warning for a specified deprecated class (not all warning) in VS Code?

I am using VS Code Version: 1.55.2 (Universal) and PHP IntelliSense v2.3.14

Duy Do
  • 11
  • 1

1 Answers1

0

From (https://code.visualstudio.com/updates/v1_49):

Disable these strike throughs by setting "editor.showDeprecated": false

See also here: https://github.com/microsoft/TypeScript/issues/40511

The word 'super' then gets striked through and hovering over seems to say it is deprecated for typescript, but this is not a typescript file. It does not affect the code but is confusing many people. Working around it by disabling the "Editor: Show Deprecated" setting, but would prefer to be able to enable that setting. This has only been happening since the VS Code update on August 10, 2020 (yesterday).

Curtis
  • 548
  • 3
  • 13