visual studio 2015 - VS2015 extension - Get selected items in Error list -
i'm trying make extension visual studio 2015 depends on selected items in error list view.
i'm retrieving list following code:
var errorlist = this.dte2.toolwindows.errorlist ivstasklist2; ivsenumtaskitems items; errorlist.enumselecteditems(out items);
but problem i'm able description (text) not error code (helpkeyword). description way:
ivstaskitem[] item = new ivstaskitem[1]; while (items.next(1, item, null) == 0) { string description; item.get_text(out description); }
hope can helped me on i'm quiet frustrated @ moment.
i able using different approach:
var errorlist = dte.toolwindows.errorlist ierrorlist; var selected = errorlist.tablecontrol.selectedentry; if (selected != null) { object content; if (selected.trygetvalue("errorcode", out content)) { return (string)content; } }
this accesses error window selected item table , gets correct column (the text column has key "text", btw).
it wasn't easy figure out. thank microsoft for: 1) total lack of documentation of stuff, 2) breaking interfaces worked in vs2013, , 3) not adding code property erroritem.
Comments
Post a Comment