diff --git a/package.json b/package.json index 25e6c27..473503f 100644 --- a/package.json +++ b/package.json @@ -7243,7 +7243,7 @@ "title": "Swap Comparison", "category": "GitLens", "icon": "$(arrow-swap)", - "enablement": "viewItem =~ /gitlens:compare:results\\b(?!.*?\\b\\+working\\b)/" + "enablement": "viewItem =~ /gitlens:compare:results(?!:)\\b(?!.*?\\b\\+working\\b)/" }, { "command": "gitlens.views.searchAndCompare.setFilesFilterOnLeft", @@ -12930,7 +12930,7 @@ }, { "command": "gitlens.views.searchAndCompare.swapComparison", - "when": "viewItem =~ /gitlens:compare:results\\b/", + "when": "viewItem =~ /gitlens:compare:results(?!:)\\b/", "group": "inline@1" }, { @@ -12945,47 +12945,47 @@ }, { "command": "gitlens.views.refreshNode", - "when": "viewItem =~ /gitlens:compare:(branch(?=.*?\\b\\+comparing\\b)|results)\\b/", + "when": "viewItem =~ /gitlens:compare:(branch(?=.*?\\b\\+comparing\\b)|results(?!:))\\b/", "group": "inline@97" }, { "command": "gitlens.views.refreshNode", - "when": "viewItem =~ /gitlens:search:results\\b/", + "when": "viewItem =~ /gitlens:search:results(?!:)\\b/", "group": "inline@97" }, { "command": "gitlens.views.setResultsCommitsFilterOff", - "when": "viewItem =~ /gitlens:compare:(results|branch)\\b(?=.*?\\b\\+filtered\\b)/", + "when": "viewItem =~ /gitlens:compare:(results(?!:)|branch)\\b(?=.*?\\b\\+filtered\\b)/", "group": "inline@96" }, { "command": "gitlens.views.searchAndCompare.swapComparison", - "when": "viewItem =~ /gitlens:compare:results\\b(?!.*?\\b\\+working\\b)/", + "when": "viewItem =~ /gitlens:compare:results(?!:)\\b(?!.*?\\b\\+working\\b)/", "group": "1_gitlens_actions@2" }, { "command": "gitlens.views.openDirectoryDiff", - "when": "viewItem =~ /gitlens:compare:results\\b/", + "when": "viewItem =~ /gitlens:compare:results(?!:)\\b/", "group": "2_gitlens_quickopen@1" }, { "command": "gitlens.views.setResultsCommitsFilterOff", - "when": "viewItem =~ /gitlens:compare:(results|branch)\\b(?=.*?\\b\\+filtered\\b)/", + "when": "viewItem =~ /gitlens:compare:(results(?!:)|branch)\\b(?=.*?\\b\\+filtered\\b)/", "group": "7_gitlens_filter@1" }, { "command": "gitlens.views.setResultsCommitsFilterAuthors", - "when": "viewItem =~ /gitlens:compare:(results|branch)\\b/", + "when": "viewItem =~ /gitlens:compare:(results(?!:)|branch)\\b/", "group": "7_gitlens_filter@2" }, { "command": "gitlens.views.editNode", - "when": "viewItem =~ /gitlens:search:results\\b/", + "when": "viewItem =~ /gitlens:search:results(?!:)\\b/", "group": "inline@1" }, { "command": "gitlens.views.editNode", - "when": "viewItem =~ /gitlens:search:results\\b/", + "when": "viewItem =~ /gitlens:search:results(?!:)\\b/", "group": "1_gitlens_actions@1" }, {