Retrieving a CodeElement reliably in VS.NET 2005
Posted by: Rick Strahls WebLog,
on 03 Nov 2005 |
View original | NEW Bookmarked: 0 time(s)
I’ve been working on updating the Help Builder VS.NET 2005 add-in and there are a number of small things that I’ve run into that behave quite a bit different than in VS2003. Here’s one that pretty much broke all of my existing add-in behavior that deals with the editor integration.
In VS2003 I used the following code to figure out what type of code element the cursor is sitting on:
element = DTE.ActiveDocument.ProjectItem.FileCodeModel.CodeElementFromPoint(selPoint,0);
This...