3

I recently cloned a React repository (based off of create-react-app) from BitBucket. Why are all my node_modules folders highlighted red in Visual Studio Code?

I ran npm install, npm update, and npm start and didn't run into any errors, but the folders are still highlighted red. How can I make sure these packages are being installed/updated properly?

red node_modules folder screenshot

  • Looks like this is a problem for others -- see some of the last comments on this thread: https://github.com/Microsoft/vscode/issues/782 – StephenGodderidge Jul 14 '18 at 21:39

2 Answers2

4

You can change the color of ignored files in VS Code settings (darker gray works nicely for me):

  "workbench.colorCustomizations": {
    "[Cobalt2]": {
      "gitDecoration.ignoredResourceForeground": "#808080",
    }
  },

ignored git files image

protoEvangelion
  • 4,355
  • 2
  • 29
  • 38
0

Answer posted here: https://github.com/Microsoft/vscode/issues/54574

Last post on the above thread: "This unrelated to intellisense. It is caused by cobalt2 theme which—from what I can tell at least—decided to color .gitignored files as red. You can disable explorer colorization this by setting "explorer.decorations.colors": false"