From e2933ed3a37cdacc9508d00c6e2888bf3ce67373 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 21 Oct 2023 23:06:25 -0400 Subject: [PATCH] Fixes incorrect regex change --- package.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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" }, {