Skip to content

Commit bf85c35

Browse files
committed
Restricts markdown feedback actions to custom scheme
Updates menu conditions so feedback actions for markdown previews only appear when the editor uses the dedicated custom resource scheme, preventing display in standard markdown previews. Adjusts menu order for better navigation grouping and consistency. Aligns command visibility with intended context to avoid confusion and clutter in the editor UI.
1 parent 7c7bdf8 commit bf85c35

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

contributions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3710,7 +3710,7 @@
37103710
{
37113711
"when": "resourceScheme == gitlens-markdown && activeCustomEditorId == vscode.markdown.preview.editor",
37123712
"group": "navigation",
3713-
"order": 0
3713+
"order": 3
37143714
}
37153715
],
37163716
"editor/title/context": [

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14131,10 +14131,20 @@
1413114131
"when": "resourceScheme =~ /^(gitlens|pr)$/ && gitlens:enabled && isInDiffEditor",
1413214132
"group": "navigation@-97"
1413314133
},
14134+
{
14135+
"command": "gitlens.ai.feedback.positive",
14136+
"when": "resourceScheme == gitlens-markdown && gitlens:markdown:feedback:available && activeCustomEditorId == vscode.markdown.preview.editor",
14137+
"group": "navigation@1"
14138+
},
14139+
{
14140+
"command": "gitlens.ai.feedback.negative",
14141+
"when": "resourceScheme == gitlens-markdown && gitlens:markdown:feedback:available && activeCustomEditorId == vscode.markdown.preview.editor",
14142+
"group": "navigation@2"
14143+
},
1413414144
{
1413514145
"command": "gitlens.regenerateMarkdownDocument",
1413614146
"when": "resourceScheme == gitlens-markdown && activeCustomEditorId == vscode.markdown.preview.editor",
14137-
"group": "navigation@0"
14147+
"group": "navigation@3"
1413814148
},
1413914149
{
1414014150
"command": "gitlens.ai.feedback.positive",

0 commit comments

Comments
 (0)