|
55 | 55 | ] |
56 | 56 | }, |
57 | 57 | "commands": [ |
| 58 | + { |
| 59 | + "command": "github1s.dev-test", |
| 60 | + "title": "GitHub1s Dev Test", |
| 61 | + "category": "GitHub1s" |
| 62 | + }, |
58 | 63 | { |
59 | 64 | "command": "github1s.update-token", |
60 | 65 | "title": "Update GitHub OAuth Token", |
|
167 | 172 | "category": "GitHub1s", |
168 | 173 | "icon": "$(arrow-right)", |
169 | 174 | "enablement": "resource =~ /^[^?]*\\?[^#]*(%26|\\b)hasNextRevision(=|%3D|%3d)true/" |
| 175 | + }, |
| 176 | + { |
| 177 | + "command": "github1s.toggle-editor-gutter-blame", |
| 178 | + "title": "Toggle File Blame", |
| 179 | + "category": "GitHub1s", |
| 180 | + "enablement": "!isInDiffEditor && resourceScheme =~ /^github1s$/" |
| 181 | + }, |
| 182 | + { |
| 183 | + "command": "github1s.open-editor-gutter-blame", |
| 184 | + "title": "Toggle File Blame", |
| 185 | + "category": "GitHub1s", |
| 186 | + "icon": { |
| 187 | + "dark": "assets/icons/dark/open-blame.svg", |
| 188 | + "light": "assets/icons/light/open-blame.svg" |
| 189 | + }, |
| 190 | + "enablement": "!isInDiffEditor && resourceScheme =~ /^github1s$/" |
| 191 | + }, |
| 192 | + { |
| 193 | + "command": "github1s.close-editor-gutter-blame", |
| 194 | + "title": "Toggle File Blame", |
| 195 | + "category": "GitHub1s", |
| 196 | + "icon": { |
| 197 | + "dark": "assets/icons/dark/close-blame.svg", |
| 198 | + "light": "assets/icons/light/close-blame.svg" |
| 199 | + }, |
| 200 | + "enablement": "!isInDiffEditor && resourceScheme =~ /^github1s$/" |
170 | 201 | } |
171 | 202 | ], |
172 | 203 | "colors": [ |
|
214 | 245 | "dark": "#1890ff", |
215 | 246 | "highContrast": "#1890ff" |
216 | 247 | } |
| 248 | + }, |
| 249 | + { |
| 250 | + "id": "github1s.colors.gutterBlameBackground", |
| 251 | + "description": "gutter blame background color", |
| 252 | + "defaults": { |
| 253 | + "light": "#00000013", |
| 254 | + "dark": "#ffffff13", |
| 255 | + "highContrast": "#ffffff13" |
| 256 | + } |
| 257 | + }, |
| 258 | + { |
| 259 | + "id": "github1s.colors.highlightGutterBlameBackground", |
| 260 | + "description": "highlight gutter blame background color", |
| 261 | + "defaults": { |
| 262 | + "light": "#00bcf233", |
| 263 | + "dark": "#00bce233", |
| 264 | + "highContrast": "#00bce233" |
| 265 | + } |
217 | 266 | } |
218 | 267 | ], |
219 | 268 | "menus": { |
|
261 | 310 | { |
262 | 311 | "command": "github1s.editor-view-open-next-revision", |
263 | 312 | "when": "false" |
| 313 | + }, |
| 314 | + { |
| 315 | + "command": "github1s.open-editor-gutter-blame", |
| 316 | + "when": "false" |
| 317 | + }, |
| 318 | + { |
| 319 | + "command": "github1s.close-editor-gutter-blame", |
| 320 | + "when": "false" |
264 | 321 | } |
265 | 322 | ], |
266 | 323 | "view/title": [ |
|
323 | 380 | "when": "isInDiffEditor", |
324 | 381 | "group": "navigation@3" |
325 | 382 | }, |
| 383 | + { |
| 384 | + "command": "github1s.open-editor-gutter-blame", |
| 385 | + "when": "!isInDiffEditor && resourceScheme =~ /^github1s$/ && !github1s.context.gutterBlameOpening", |
| 386 | + "group": "navigation@4" |
| 387 | + }, |
| 388 | + { |
| 389 | + "command": "github1s.close-editor-gutter-blame", |
| 390 | + "when": "!isInDiffEditor && resourceScheme =~ /^github1s$/ && github1s.context.gutterBlameOpening", |
| 391 | + "group": "navigation@4" |
| 392 | + }, |
326 | 393 | { |
327 | 394 | "command": "github1s.editor-view-open-prev-revision", |
328 | 395 | "when": "resourceScheme =~ /^github1s/", |
|
0 commit comments