瀏覽代碼

Removes open working file when unneeded

main
Eric Amodio 6 年之前
父節點
當前提交
ae8428c316
共有 4 個文件被更改,包括 11 次插入3 次删除
  1. +3
    -0
      CHANGELOG.md
  2. +1
    -1
      images/dark/icon-open-working-file.svg
  3. +1
    -1
      images/light/icon-open-working-file.svg
  4. +6
    -1
      package.json

+ 3
- 0
CHANGELOG.md 查看文件

@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Adds an indicator to the *GitLens* explorer branch history to mark the synchronization point between the local and remote branch (if available)
- Adds `${agoOrDate}` and `${authorAgoOrDate}` tokens to `gitlens.blame.format`, `gitlens.currentLine.format`, `gitlens.explorers.commitFormat`, `gitlens.explorers.stashFormat`, and `gitlens.statusBar.format` settings which will honor the `gitlens.defaultDateStyle` setting — closes [#312](https://github.com/eamodio/vscode-gitlens/issues/312)
### Removed
- Removes the *Open Working File* command from the editor toolbar when the built-in *Open File* command is visible
### Fixed
- Fixes [#314](https://github.com/eamodio/vscode-gitlens/issues/314) - Toggle line annotation doesn't work properly
- Fixes [#310](https://github.com/eamodio/vscode-gitlens/issues/310) - "via Terminal" commands need quoting around work directory

+ 1
- 1
images/dark/icon-open-working-file.svg 查看文件

@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<polygon fill="#C5C5C5" points="10,2 7.414,2 8.414,3 9,3 9,3.586 9,4 9,4.414 9,6 12,6 12,13 4,13 4,8 3,8 3,14 13,14 13,5"/>'
<polygon fill="#ba7dd9" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/>
<polygon fill="#75BEFF" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/>
</svg>

+ 1
- 1
images/light/icon-open-working-file.svg 查看文件

@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<polygon fill="#424242" points="10,2 7.414,2 8.414,3 9,3 9,3.586 9,4 9,4.414 9,6 12,6 12,13 4,13 4,8 3,8 3,14 13,14 13,5"/>'
<polygon fill="#7d16bf" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/>
<polygon fill="#00539C" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/>
</svg>

+ 6
- 1
package.json 查看文件

@ -2153,7 +2153,12 @@
"editor/title": [
{
"command": "gitlens.openWorkingFile",
"when": "gitlens:activeIsRevision",
"when": "gitlens:activeIsRevision && resourceScheme != git",
"group": "navigation@1"
},
{
"command": "gitlens.openWorkingFile",
"when": "gitlens:activeIsRevision && resourceScheme == git && !isInDiffEditor",
"group": "navigation@1"
},
{

Loading…
取消
儲存