> Hi,
>
[quoted text clipped - 14 lines]
> Thanks,
> Gabriel Bota.
Have you created a custom editor, or are you using a provided Visual
Studio editor, such as the XML editor or XSD designer?
The contents come from an in memory buffer, which is managed by Visual
Studio. One interface I suggest you look at is IVsTextLines.
There is a good example of an editor in the VSIP sdk on these.
under VisualStudioIntegration\Samples\IDE\CSharp, see Example.XmlDesigner
Cheers,
Stu
Gabriel Bota - 19 Apr 2006 08:00 GMT
> > Hi,
> >
[quoted text clipped - 28 lines]
>
> Stu
Hi Stu,
Thanks for the answer. It is a custom editor. If the xsd file is open with
the XSD designer or with the XML editor from VS the problem does not appear.
I'll take a look at the samples that you directed me to. But....
IVsTextLines is the interface that my editor will have to implement? Did I
get this right?
Thanks,
Gabriel.
Stuart Carnie - 19 Apr 2006 17:29 GMT
>>> Hi,
>>>
[quoted text clipped - 38 lines]
> Thanks,
> Gabriel.
No, but you should notify this interface of any changes to your editors
buffer via the IVsTextLines interface. In my custom editor (which also
permits the Xml editor), I call the IVsTextLines::ReplaceLines method
any time my buffer changes, so the Xml editor view is updated
accordingly and additionally, my SingleFileGenerator recieves update
notifications to regen the code.
Cheers,
Stu