Skip to content

Commit 924d40c

Browse files
committed
Fixes the openWorkingFile command to always show when desired
1 parent d2a7a1c commit 924d40c

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
99
- Adds clipboard support for Linux without requiring any external dependencies — thanks to [PR #394](https://github.com/eamodio/vscode-gitlens/pull/394) by Cédric Malard ([@cmalard](https://github.com/cmalard))
1010
- Adds a select branch quick pick menu to the *Open File in Remote* command (`gitlens.openFileInRemote`) when the current branch has no upstream tracking branch — closes [#209](https://github.com/eamodio/vscode-gitlens/issues/209)
1111

12+
### Changed
13+
- Moves the *Open Working File* command (`gitlens.openWorkingFile`) to the right of the *Compare File with * Revision* commands in the editor toolbar
14+
1215
### Fixed
1316
- Fixes [#400](https://github.com/eamodio/vscode-gitlens/issues/400) - Reset TO commit also resets chosen one
1417
- Fixes [#399](https://github.com/eamodio/vscode-gitlens/issues/399) - "Open x in Remote" commands aren't always available
@@ -17,6 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1720
- Fixes another case of [#343](https://github.com/eamodio/vscode-gitlens/issues/343) - Can't show blame when VSCode starts on branch without upstream — thanks to [PR #390](https://github.com/eamodio/vscode-gitlens/pull/390) by ryenus ([@ryenus](https://github.com/ryenus))
1821
- Fixes [#392](https://github.com/eamodio/vscode-gitlens/issues/392) - unable to contribute if default script shell is sh — thanks to [PR #393](https://github.com/eamodio/vscode-gitlens/pull/393) by Cédric Malard ([@cmalard](https://github.com/cmalard))
1922
- Fixes issue with the `chorded` keyboard shortcut for the *Compare File with Previous Revision* command (`gitlens.diffWithPreviousInDiff`) — from [#395](https://github.com/eamodio/vscode-gitlens/issues/395)
23+
- Fixes the *Open Working File* command (`gitlens.openWorkingFile`) not always showing in the editor toolbar when appropriate
2024

2125
## [8.3.3] - 2018-05-31
2226
### Added

package.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,29 +2407,34 @@
24072407
}
24082408
],
24092409
"editor/title": [
2410-
{
2411-
"command": "gitlens.openWorkingFile",
2412-
"when": "gitlens:activeIsRevision && resourceScheme != git",
2413-
"group": "navigation@1"
2414-
},
2415-
{
2416-
"command": "gitlens.openWorkingFile",
2417-
"when": "gitlens:activeIsRevision && resourceScheme == git && !isInDiffEditor",
2418-
"group": "navigation@1"
2419-
},
24202410
{
24212411
"command": "gitlens.diffWithPrevious",
24222412
"when": "editorTextFocus && !isInDiffEditor && gitlens:activeIsTracked && config.gitlens.menus.editorGroup.compare",
2423-
"group": "navigation@98"
2413+
"group": "navigation@97"
24242414
},
24252415
{
24262416
"command": "gitlens.diffWithPreviousInDiff",
24272417
"when": "isInDiffEditor && gitlens:activeIsTracked && config.gitlens.menus.editorGroup.compare",
2428-
"group": "navigation@98"
2418+
"group": "navigation@97"
24292419
},
24302420
{
24312421
"command": "gitlens.diffWithNext",
24322422
"when": "editorTextFocus && gitlens:activeIsTracked && gitlens:activeIsTracked && gitlens:activeIsRevision && config.gitlens.menus.editorGroup.compare",
2423+
"group": "navigation@98"
2424+
},
2425+
{
2426+
"command": "gitlens.openWorkingFile",
2427+
"when": "gitlens:activeIsRevision && resourceScheme != git",
2428+
"group": "navigation@99"
2429+
},
2430+
{
2431+
"command": "gitlens.openWorkingFile",
2432+
"when": "!gitlens:activeIsRevision && resourceScheme != git && isInDiffEditor",
2433+
"group": "navigation@99"
2434+
},
2435+
{
2436+
"command": "gitlens.openWorkingFile",
2437+
"when": "gitlens:activeIsRevision && resourceScheme == git && !isInDiffEditor",
24332438
"group": "navigation@99"
24342439
},
24352440
{

0 commit comments

Comments
 (0)