diff --git a/package.json b/package.json index 7b2d99ab5..f64d0914a 100644 --- a/package.json +++ b/package.json @@ -2612,7 +2612,7 @@ }, { "command": "code-for-ibmi.refreshObjectBrowserItem", - "when": "view == objectBrowser", + "when": "view == objectBrowser && viewItem =~ /^(filter|object.*library|SPF).*$/", "group": "99_objectBrowserAction@1" }, { @@ -2752,7 +2752,7 @@ }, { "command": "code-for-ibmi.refreshIFSBrowserItem", - "when": "view == ifsBrowser && viewItem =~ /^(directory|shortcut).*$/", + "when": "view == ifsBrowser && viewItem =~ /^(shortcut|directory).*$/", "group": "99_ifsBrowserAction@1" }, {