Skip to content

Commit ad1d197

Browse files
committed
Add icons and details for type-hierarchy view
1 parent e8b4291 commit ad1d197

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@
248248
"command": "clangd.typeHierarchy.viewParents",
249249
"category": "clangd",
250250
"title": "Types: Show Base Classes",
251-
"icon": "$(triangle-up)"
251+
"icon": "$(type-hierarchy-super)"
252252
},
253253
{
254254
"command": "clangd.typeHierarchy.viewChildren",
255255
"category": "clangd",
256256
"title": "Types: Show Derived Classes",
257-
"icon": "$(triangle-down)"
257+
"icon": "$(type-hierarchy-sub)"
258258
},
259259
{
260260
"command": "clangd.typeHierarchy.close",

src/type-hierarchy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ const dummyNode: TypeHierarchyItem = {
7373
class TypeHierarchyTreeItem extends vscode.TreeItem {
7474
constructor(item: TypeHierarchyItem, direction: TypeHierarchyDirection) {
7575
super(item.name);
76+
this.description = item.detail;
77+
this.iconPath = new vscode.ThemeIcon('symbol-class');
7678
let subItems = direction === TypeHierarchyDirection.Children ? item.children : item.parents;
7779
if (subItems) {
7880
if (subItems.length === 0) {

0 commit comments

Comments
 (0)