Skip to content

Commit c462589

Browse files
sergeibbbeamodio
authored andcommitted
Improves when clause to hide feedback buttons when telemetry is disabled
(#4449, #4475)
1 parent b78e0d0 commit c462589

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
@@ -149,7 +149,7 @@
149149
"menus": {
150150
"editor/title": [
151151
{
152-
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && activeCustomEditorId == vscode.markdown.preview.editor",
152+
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && config.telemetry.telemetryLevel != off && activeCustomEditorId == vscode.markdown.preview.editor",
153153
"group": "navigation",
154154
"order": 2
155155
}
@@ -162,7 +162,7 @@
162162
"menus": {
163163
"editor/title": [
164164
{
165-
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && activeCustomEditorId == vscode.markdown.preview.editor",
165+
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && config.telemetry.telemetryLevel != off && activeCustomEditorId == vscode.markdown.preview.editor",
166166
"group": "navigation",
167167
"order": 1
168168
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14138,12 +14138,12 @@
1413814138
},
1413914139
{
1414014140
"command": "gitlens.ai.feedback.positive",
14141-
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && activeCustomEditorId == vscode.markdown.preview.editor",
14141+
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && config.telemetry.telemetryLevel != off && activeCustomEditorId == vscode.markdown.preview.editor",
1414214142
"group": "navigation@1"
1414314143
},
1414414144
{
1414514145
"command": "gitlens.ai.feedback.negative",
14146-
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && activeCustomEditorId == vscode.markdown.preview.editor",
14146+
"when": "resourceScheme == gitlens-markdown && config.gitlens.telemetry.enabled && config.telemetry.telemetryLevel != off && activeCustomEditorId == vscode.markdown.preview.editor",
1414714147
"group": "navigation@2"
1414814148
},
1414914149
{

0 commit comments

Comments
 (0)