From 044bd9928508c4c3d2e73325b88aa46519728879 Mon Sep 17 00:00:00 2001 From: Bruno Ribeito Date: Sun, 18 Feb 2018 17:41:25 +0000 Subject: [PATCH] Fix #25541 --- extensions/git/package.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/extensions/git/package.json b/extensions/git/package.json index 7b757fb21b886..7b19645cefaa5 100644 --- a/extensions/git/package.json +++ b/extensions/git/package.json @@ -832,6 +832,23 @@ "when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" } ], + "editor/context": [ + { + "command": "git.stageSelectedRanges", + "group": "2_git@1", + "when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" + }, + { + "command": "git.unstageSelectedRanges", + "group": "2_git@2", + "when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" + }, + { + "command": "git.revertSelectedRanges", + "group": "2_git@3", + "when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/" + } + ], "scm/change/title": [ { "command": "git.stageChange",