In a VS2010 package, I have a piece of code that calls FileCodeModel.CodeElements, when the caret position changes. Also I registered a handler in the CodeModelEvents bound to the document.
When the package monitors a C# project, it works OK. However, when monitoring a VB project, the FileCodeModel.CodeElements call fails with an COMException that corresponds to an E_FAIL error.
any ideas why the behavior is different?