I encountered the same issue. It worked fine some time but an update broke VS Code & Wayland (presumably an update in the underlying electron version).
I’ve just given up on VS Code on Wayland, it has been nothing but trouble.
In case you’re really dependent on VS Code to run natively under Wayland, I guess your best bet is to open an issue on their GitHub.