Skip to content

Commit fbd1ad2

Browse files
committed
Fixes regenerate button appearing for AI actions that cannot be regenerated
1 parent a7a7b06 commit fbd1ad2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contributions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3734,14 +3734,14 @@
37343734
"menus": {
37353735
"editor/title": [
37363736
{
3737-
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor",
3737+
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor && resourcePath =~ /^\\/explain\\//",
37383738
"group": "navigation",
37393739
"order": 3
37403740
}
37413741
],
37423742
"editor/title/context": [
37433743
{
3744-
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor",
3744+
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor && resourcePath =~ /^\\/explain\\//",
37453745
"group": "1_gitlens",
37463746
"order": 0
37473747
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14171,7 +14171,7 @@
1417114171
},
1417214172
{
1417314173
"command": "gitlens.regenerateMarkdownDocument",
14174-
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor",
14174+
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor && resourcePath =~ /^\\/explain\\//",
1417514175
"group": "navigation@3"
1417614176
},
1417714177
{
@@ -14197,7 +14197,7 @@
1419714197
},
1419814198
{
1419914199
"command": "gitlens.regenerateMarkdownDocument",
14200-
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor",
14200+
"when": "resourceScheme == gitlens-ai-markdown && activeCustomEditorId == vscode.markdown.preview.editor && resourcePath =~ /^\\/explain\\//",
1420114201
"group": "1_gitlens@0"
1420214202
},
1420314203
{

0 commit comments

Comments
 (0)