How do I get the IVsTextView of a specific OutputWindowPane?
Posted
by Jeremy Bell
on Stack Overflow
See other posts from Stack Overflow
or by Jeremy Bell
Published on 2010-03-11T15:34:35Z
Indexed on
2010/03/13
6:35 UTC
Read the original article
Hit count: 305
I have a visual studio integration package that tracks output from the debug window. I can get the IVsTextView of the output window, like so:
IVsTextView view = GetService(typeof(SVsOutputWindow)) as IVsTextView;
// grab text from the view and process it
However, if a different panel other than the "Debug" panel is currently active, then this IVsTextView will have text from that panel, and not the "Debug" panel.
Is it possible to get an IVsTextView for a specific output window panel, without calling OutputWindowPanel.Activate() prior to getting the IVsTextView of the output window?
© Stack Overflow or respective owner