From 89dbf6cf09d27eb45c502b8bd12bc422da610254 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 3 Nov 2021 03:56:53 -0400 Subject: [PATCH] Fixes #1710: adds open file to comparison files --- CHANGELOG.md | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f5484a..55ec597 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Added - Adds a new _Cherry Pick without Committing_ confirmation option to the _Git Command Palette_'s _cherry-pick_ command — closes [#1693](https://github.com/eamodio/vscode-gitlens/issues/1693) +- Adds new _Open File_ command (with _Open Revision_ as an `alt-click`) to files in comparisons — closes [#1710](https://github.com/eamodio/vscode-gitlens/issues/1710) ### Fixed diff --git a/package.json b/package.json index d90ea7a..8ecc8c3 100644 --- a/package.json +++ b/package.json @@ -7928,7 +7928,7 @@ }, { "command": "gitlens.views.openFile", - "when": "view =~ /gitlens\\.views\\.(?!(fileHistory|lineHistory)\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+(committed|stashed)\\b)/", + "when": "view =~ /gitlens\\.views\\.(?!(fileHistory|lineHistory)\\b)/ && viewItem =~ /gitlens:file(:results|\\b(?=.*?\\b\\+(committed|stashed)\\b))/", "group": "inline@1", "alt": "gitlens.views.openFileRevision" },