4

A random Debug statement came up in my package.json and I have no idea how to get rid of it, I don't even know how it got added

Random Debug

How can I get rid of it?

skyboyer
  • 22,209
  • 7
  • 57
  • 64
Altaf
  • 399
  • 1
  • 5
  • 15

2 Answers2

2

This looks like a code lens provided by one of your extensions. You can either disable all code lenses with the editor.codeLens setting or figure out which extension is doing this and either disable the extension or just its lens (if it provides a setting).

Nick McCurdy
  • 17,658
  • 5
  • 50
  • 82
  • The only things I've installed recently are `react-test-renderer`, `enzyme`, `enzyme-adapter-react-16`, and `raf`. The only files add are a tests/setupTest.js file and a jest.config.json file. Those are the only extensions I've used which are similar to ones I've had already. Do you think one of the installs could have caused it? – Altaf Jun 12 '20 at 05:03
  • Or is it because visual studio code just updated? I could disable `editor.codeLens` but was hoping I could source where it came from. – Altaf Jun 12 '20 at 05:06
  • Those are JS packages, not VSCode extensions. You can see VSCode extensions in the sidebar, or by running the `View: Show Extensions` command. – Nick McCurdy Jun 12 '20 at 05:10
1

There is a specific feature to change for this problem.

Go to your settings, search for "codelens", you'll get multiple results.

Look for "Debug > Javascript > Codelens: Npm Scripts" and change it to never.

settings with debug issue