'VSCode - Change the background color of active item in explorer

I wanted to change the background color of the selected file in explorer in VS code and I found this setting list.activeSelectionBackground which you can see in the picture actually worked.

enter image description here

But the problem is that it only works when I click on the file explicitly but it doesn't when I switch to a different file using Alt+tab, then it looses the background color even when actually the file is selected in explorer.

After Alt+tab it starts showing the selection background like this, which is the default way

enter image description here

I tried some other settings like list.inactiveFocusBackground and list.focusBackground but they didn't work.

Any idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source