Browse Source

Add delete to stash node's toolbar

main
Eric Amodio 6 years ago
parent
commit
042f703791
3 changed files with 21 additions and 4 deletions
  1. +4
    -0
      images/dark/icon-delete.svg
  2. +4
    -0
      images/light/icon-delete.svg
  3. +13
    -4
      package.json

+ 4
- 0
images/dark/icon-delete.svg View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 22">
<path fill="#C5C5C5" d="M10.856 5.286V4.142C10.856 3.458 10.4 3 9.714 3H6.286c-.686 0-1.144.458-1.144 1.142v1.144H1.714v1.142h1.142v11.43C2.856 18.542 3.314 19 4 19h8c.686 0 1.142-.458 1.142-1.142V6.428h1.144V5.286h-3.43zm-4.57 10.286H5.142V8.714h1.144v6.858zm0-11.43h3.428v1.144H6.286V4.142zm2.286 11.43H7.428V8.714h1.144v6.858zm2.284 0H9.714V8.714h1.142v6.858z"/>
</svg>

+ 4
- 0
images/light/icon-delete.svg View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 22">
<path fill="#424242" d="M10.856 5.286V4.142C10.856 3.458 10.4 3 9.714 3H6.286c-.686 0-1.144.458-1.144 1.142v1.144H1.714v1.142h1.142v11.43C2.856 18.542 3.314 19 4 19h8c.686 0 1.142-.458 1.142-1.142V6.428h1.144V5.286h-3.43zm-4.57 10.286H5.142V8.714h1.144v6.858zm0-11.43h3.428v1.144H6.286V4.142zm2.286 11.43H7.428V8.714h1.144v6.858zm2.284 0H9.714V8.714h1.142v6.858z"/>
</svg>

+ 13
- 4
package.json View File

@ -1943,7 +1943,11 @@
{
"command": "gitlens.stashDelete",
"title": "Delete Stashed Changes",
"category": "GitLens"
"category": "GitLens",
"icon": {
"dark": "images/dark/icon-delete.svg",
"light": "images/light/icon-delete.svg"
}
},
{
"command": "gitlens.stashSave",
@ -3999,12 +4003,12 @@
{
"command": "gitlens.stashApply",
"when": "viewItem == gitlens:stashes",
"group": "inline@1"
"group": "inline@98"
},
{
"command": "gitlens.stashSave",
"when": "viewItem =~ /^gitlens:(stashes|status:files)$/",
"group": "inline@2"
"group": "inline@99"
},
{
"command": "gitlens.stashSave",
@ -4019,7 +4023,12 @@
{
"command": "gitlens.stashApply",
"when": "viewItem == gitlens:stash",
"group": "inline@1"
"group": "inline@98"
},
{
"command": "gitlens.stashDelete",
"when": "viewItem == gitlens:stash",
"group": "inline@99"
},
{
"command": "gitlens.stashApply",

Loading…
Cancel
Save