|
37 | 37 | "type": "object", |
38 | 38 | "title": "Partial Diff configurations", |
39 | 39 | "properties": { |
| 40 | + "partialDiff.hideCommandsOnContextMenu": { |
| 41 | + "description": "Hide Partial Diff commands on the context menu", |
| 42 | + "type": "boolean", |
| 43 | + "default": false |
| 44 | + }, |
40 | 45 | "partialDiff.preComparisonTextNormalizationRules": { |
41 | 46 | "description": "Rules to normalize texts before taking a diff", |
42 | 47 | "type": "array", |
|
116 | 121 | { |
117 | 122 | "command": "extension.partialDiff.markSection1", |
118 | 123 | "group": "2_partialdiff@1", |
119 | | - "when": "editorTextFocus" |
| 124 | + "when": "editorTextFocus && !config.partialDiff.hideCommandsOnContextMenu" |
120 | 125 | }, |
121 | 126 | { |
122 | 127 | "command": "extension.partialDiff.markSection2AndTakeDiff", |
123 | 128 | "group": "2_partialdiff@2", |
124 | | - "when": "editorTextFocus" |
| 129 | + "when": "editorTextFocus && !config.partialDiff.hideCommandsOnContextMenu" |
125 | 130 | }, |
126 | 131 | { |
127 | 132 | "command": "extension.partialDiff.diffSelectionWithClipboard", |
128 | 133 | "group": "2_partialdiff@3", |
129 | | - "when": "editorTextFocus" |
| 134 | + "when": "editorTextFocus && !config.partialDiff.hideCommandsOnContextMenu" |
130 | 135 | }, |
131 | 136 | { |
132 | 137 | "command": "extension.partialDiff.diffVisibleEditors", |
133 | 138 | "group": "2_partialdiff@4", |
134 | | - "when": "editorTextFocus" |
| 139 | + "when": "editorTextFocus && !config.partialDiff.hideCommandsOnContextMenu" |
135 | 140 | }, |
136 | 141 | { |
137 | 142 | "command": "extension.partialDiff.togglePreComparisonTextNormalizationRules", |
138 | 143 | "group": "2_partialdiff@5", |
139 | | - "when": "editorTextFocus" |
| 144 | + "when": "editorTextFocus && !config.partialDiff.hideCommandsOnContextMenu" |
140 | 145 | } |
141 | 146 | ] |
142 | 147 | } |
|
0 commit comments