From bf176301afc783f3e9d05c45c39c0195d796ffa8 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 16 Feb 2017 12:28:57 -0500 Subject: [PATCH] Adds diffWithPrevious to editor context menu Adds diffWithWorking to editor context menu Renames diffWithPrevious for better clarity with new behavior Renames diffWithWorking, diffLineWithPrevious, & diffLineWithWorking for better clarity --- package.json | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6090dad..77d6cd4 100644 --- a/package.json +++ b/package.json @@ -309,22 +309,22 @@ "commands": [ { "command": "gitlens.diffWithPrevious", - "title": "Diff Commit with Previous", + "title": "Compare with Previous Commit", "category": "GitLens" }, { "command": "gitlens.diffLineWithPrevious", - "title": "Diff Commit (line) with Previous", + "title": "Compare Line with Previous Commit", "category": "GitLens" }, { "command": "gitlens.diffWithWorking", - "title": "Diff Commit with Working Tree", + "title": "Compare with Working Tree", "category": "GitLens" }, { "command": "gitlens.diffLineWithWorking", - "title": "Diff Commit (line) with Working Tree", + "title": "Compare Line with Working Tree", "category": "GitLens" }, { @@ -499,6 +499,16 @@ "when": "editorTextFocus && gitlens:enabled", "group": "1_gitlens@3" }, + { + "command": "gitlens.diffWithPrevious", + "when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled", + "group": "1_gitlens-file@1" + }, + { + "command": "gitlens.diffWithWorking", + "when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled", + "group": "1_gitlens-file@2" + }, { "command": "gitlens.toggleBlame", "when": "editorTextFocus && gitlens:enabled",