VS Plugin: use solution scope if no active document. Closes #2498

Possible firx for 2.48 VS integration problem #2498