I think I'm missing out as mine drops by a very pedestrian 10% an hour. WindowServer keeps using a cool 4% of the CPU at all times, even when nothing is running.
I had it even worse only 5 hours of battery life in my first week of usage. It turned out OneDrive had a bug with syncing; after reinstalling (then keeping it on overnight for the sync to finish), the battery jumped to ~8-10 hours with fairly heavy usage (Parallels + Safari, though with syncing paused), which is near your current level. The Energy tab of the Activity Monitor helped me identify OneDrive as the power suck.
How are you measuring CPU usage? Presumably whatever monitoring tool you're looking at needs to redraw itself, and that's going to bring in WindowServer…
(FWIW, my WindowServer usage is generally around 3-8% when idling and I am losing about 6% an hour at the moment.)
I am not 2021 macbook pro's yet but on 2020 M1 VS Code doesn't have higher than usual impact on battery. Atleast I, with 7-8 active vscode windows throughout the day, couldn't notice.