fixes #40439
parent
4786527cdf
commit
590d36f948
|
@ -68,6 +68,15 @@
|
|||
"dark": "resources/icons/dark/open-file.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "git.openFile2",
|
||||
"title": "%command.openFile%",
|
||||
"category": "Git",
|
||||
"icon": {
|
||||
"light": "resources/icons/light/open-file-mono.svg",
|
||||
"dark": "resources/icons/dark/open-file-mono.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "git.openHEADFile",
|
||||
"title": "%command.openHEADFile%",
|
||||
|
@ -369,6 +378,10 @@
|
|||
"command": "git.revertChange",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.openFile2",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.unstage",
|
||||
"when": "gitOpenRepositoryCount != 0"
|
||||
|
@ -712,7 +725,7 @@
|
|||
"group": "inline"
|
||||
},
|
||||
{
|
||||
"command": "git.openFile",
|
||||
"command": "git.openFile2",
|
||||
"when": "scmProvider == git && scmResourceGroup == merge",
|
||||
"group": "inline0"
|
||||
},
|
||||
|
@ -742,7 +755,7 @@
|
|||
"group": "inline"
|
||||
},
|
||||
{
|
||||
"command": "git.openFile",
|
||||
"command": "git.openFile2",
|
||||
"when": "scmProvider == git && scmResourceGroup == index",
|
||||
"group": "inline0"
|
||||
},
|
||||
|
@ -782,7 +795,7 @@
|
|||
"group": "inline"
|
||||
},
|
||||
{
|
||||
"command": "git.openFile",
|
||||
"command": "git.openFile2",
|
||||
"when": "scmProvider == git && scmResourceGroup == workingTree",
|
||||
"group": "inline0"
|
||||
},
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<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="#C5C5C5" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/></svg>
|
After Width: | Height: | Size: 262 B |
|
@ -0,0 +1 @@
|
|||
<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="#424242" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/></svg>
|
After Width: | Height: | Size: 262 B |
|
@ -1,3 +1 @@
|
|||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
]><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><polygon fill="#656565" 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="#00539C" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><polygon fill="#656565" 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="#00539C" points="5,1 3,1 5,3 1,3 1,5 5,5 3,7 5,7 8,4"/></svg>
|
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 262 B |
|
@ -533,6 +533,11 @@ export class CommandCenter {
|
|||
}
|
||||
}
|
||||
|
||||
@command('git.openFile2')
|
||||
async openFile2(arg?: Resource | Uri, ...resourceStates: SourceControlResourceState[]): Promise<void> {
|
||||
this.openFile(arg, ...resourceStates);
|
||||
}
|
||||
|
||||
@command('git.openHEADFile')
|
||||
async openHEADFile(arg?: Resource | Uri): Promise<void> {
|
||||
let resource: Resource | undefined = undefined;
|
||||
|
|
Loading…
Reference in New Issue