|
1197 | 1197 | "title": "%command.pr.closeRelatedEditors.title%", |
1198 | 1198 | "category": "%command.pull.request.category%" |
1199 | 1199 | }, |
| 1200 | + { |
| 1201 | + "command": "pr.toggleEditorCommentingOn", |
| 1202 | + "title": "%command.pr.toggleEditorCommentingOn.title%", |
| 1203 | + "category": "%command.pull.request.category%", |
| 1204 | + "icon": "$(eye-closed)" |
| 1205 | + }, |
| 1206 | + { |
| 1207 | + "command": "pr.toggleEditorCommentingOff", |
| 1208 | + "title": "%command.pr.toggleEditorCommentingOff.title%", |
| 1209 | + "category": "%command.pull.request.category%", |
| 1210 | + "icon": "$(eye)" |
| 1211 | + }, |
1200 | 1212 | { |
1201 | 1213 | "command": "review.diffWithPrHead", |
1202 | 1214 | "title": "%command.review.diffWithPrHead.title%", |
|
1792 | 1804 | "command": "pr.closeRelatedEditors", |
1793 | 1805 | "when": "gitHubOpenRepositoryCount != 0" |
1794 | 1806 | }, |
| 1807 | + { |
| 1808 | + "command": "pr.toggleEditorCommentingOn", |
| 1809 | + "when": "false" |
| 1810 | + }, |
| 1811 | + { |
| 1812 | + "command": "pr.toggleEditorCommentingOff", |
| 1813 | + "when": "false" |
| 1814 | + }, |
1795 | 1815 | { |
1796 | 1816 | "command": "review.suggestDiff", |
1797 | 1817 | "when": "false" |
|
2247 | 2267 | { |
2248 | 2268 | "command": "pr.setFileListLayoutAsTree", |
2249 | 2269 | "when": "view == prStatus:github && fileListLayout:flat", |
2250 | | - "group": "navigation" |
| 2270 | + "group": "navigation1" |
2251 | 2271 | }, |
2252 | 2272 | { |
2253 | 2273 | "command": "pr.setFileListLayoutAsFlat", |
2254 | 2274 | "when": "view == prStatus:github && !fileListLayout:flat", |
2255 | | - "group": "navigation" |
| 2275 | + "group": "navigation1" |
| 2276 | + }, |
| 2277 | + { |
| 2278 | + "command": "pr.toggleEditorCommentingOn", |
| 2279 | + "when": "view == prStatus:github && !commentingEnabled", |
| 2280 | + "group": "navigation@0" |
| 2281 | + }, |
| 2282 | + { |
| 2283 | + "command": "pr.toggleEditorCommentingOff", |
| 2284 | + "when": "view == prStatus:github && commentingEnabled", |
| 2285 | + "group": "navigation@0" |
2256 | 2286 | }, |
2257 | 2287 | { |
2258 | 2288 | "command": "issue.createIssue", |
|
0 commit comments