VS Plugin: use solution scope if no active document. Closes #2498
Merge remote-tracking branch 'refs/remotes/origin/release/2.48' into release/2.48