Skip to content

Commit

Permalink
Change itemid type to int instead of uint for VSHPROPID_FirstChild an…
Browse files Browse the repository at this point in the history
…d VSHPROPID_NextSibling in profile explorer to fix a regression in expansion of tree nodes.
  • Loading branch information
Hugues Valois committed Apr 8, 2020
1 parent 467fcd3 commit 8a30268
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Python/Product/Profiling/Profiling/SessionNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public override int GetProperty(uint itemid, int propid, out object pvar) {
if (itemid == VSConstants.VSITEMID_ROOT) {
pvar = ReportsItemId;
} else if (itemid == ReportsItemId && Reports.Count > 0) {
pvar = Reports.First().Key;
pvar = (int)Reports.First().Key;
} else {
pvar = VSConstants.VSITEMID_NIL;
}
Expand All @@ -171,13 +171,14 @@ public override int GetProperty(uint itemid, int propid, out object pvar) {
var items = Reports.Keys.ToArray();
for (int i = 0; i < items.Length; i++) {
if (items[i] > (int)itemid) {
pvar = itemid + 1;
pvar = (int)(itemid + 1);
break;
}
}
}
break;


case __VSHPROPID.VSHPROPID_ItemDocCookie:
if (itemid == VSConstants.VSITEMID_ROOT) {
pvar = (int)_docCookie;
Expand Down

0 comments on commit 8a30268

Please sign in to comment.