From b1113eca94c2d462093e4f054e61ec2ccdaf155d Mon Sep 17 00:00:00 2001 From: colin-grant-work Date: Mon, 18 Sep 2023 23:24:51 -0600 Subject: [PATCH] Label Close commands for views; improve enablement (#531) --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9aef3b4b..07bf16be 100644 --- a/package.json +++ b/package.json @@ -230,7 +230,8 @@ { "command": "clangd.typeHierarchy.close", "category": "clangd", - "title": "Close", + "enablement": "clangd.typeHierarchyView.visible", + "title": "Close type hierarchy view", "icon": "$(panel-close)" }, { @@ -243,7 +244,8 @@ { "command": "clangd.memoryUsage.close", "category": "clangd", - "title": "Close", + "enablement": "clangd.memoryUsage.visible", + "title": "Close memory usage view", "icon": "$(panel-close)" }, { @@ -256,7 +258,8 @@ { "command": "clangd.ast.close", "category": "clangd", - "title": "Close", + "enablement": "clangd.ast.visible", + "title": "Close AST view", "icon": "$(panel-close)" }, {