Unfortunately, the Toradex Reference images do not support the use of the VS Code extension. You can see the differences between Torizon and the Toradex Reference images here :
Regarding your issue with the installation of Torizon, could you please provide us with more information on that topic?