There's a VScode extension for that! For viewing renderings from cadquery and build123d. Haven't tried it yet, but maybe it's the weekend for it.
https://marketplace.visualstudio.com/items?itemName=bernhard...