The VisualStudioWorkspace
is exported through MEF. If you are already using MEF in you package, you can just [Import]
it.
If not, you can QueryService()
for the SComponentModel
service and then get the VisualStudioWorkspace
from that.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…