Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - file icon color

After updating to VS Code 1.46.1. I see 2 diffs. color of .js files. There is no code change in any of the files then why 1 js file icon is yellow and others are orange. What's the meaning of these 2 different colors?

enter image description here

This is the default theme which is auto-enabled after installation. enter image description here

like image 479
Pradeep Singh Avatar asked Oct 27 '25 02:10

Pradeep Singh


1 Answers

If I look at the file name closely, All files with extension *.test.js looks orange and the other js file looks yellow. This is vs code way to differentiate the type of files. vs code knows and tries to show the difference between normal js file and .test.js files. Although we can write test cases in any js files but *.test.js files are special test cases file.

Also, check this link https://code.visualstudio.com/api/working-with-extensions/testing-extension

It says the *.test.js files have access to the VS Code API.

like image 50
Pradeep Singh Avatar answered Oct 30 '25 21:10

Pradeep Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!