Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
590d36f9
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
590d36f9
编写于
12月 18, 2017
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixes #40439
上级
4786527c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
6 deletion
+24
-6
extensions/git/package.json
extensions/git/package.json
+16
-3
extensions/git/resources/icons/dark/open-file-mono.svg
extensions/git/resources/icons/dark/open-file-mono.svg
+1
-0
extensions/git/resources/icons/light/open-file-mono.svg
extensions/git/resources/icons/light/open-file-mono.svg
+1
-0
extensions/git/resources/icons/light/open-file.svg
extensions/git/resources/icons/light/open-file.svg
+1
-3
extensions/git/src/commands.ts
extensions/git/src/commands.ts
+5
-0
未找到文件。
extensions/git/package.json
浏览文件 @
590d36f9
...
...
@@ -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.openFile
2
"
,
"when"
:
"scmProvider == git && scmResourceGroup == merge"
,
"group"
:
"inline0"
},
...
...
@@ -742,7 +755,7 @@
"group"
:
"inline"
},
{
"command"
:
"git.openFile"
,
"command"
:
"git.openFile
2
"
,
"when"
:
"scmProvider == git && scmResourceGroup == index"
,
"group"
:
"inline0"
},
...
...
@@ -782,7 +795,7 @@
"group"
:
"inline"
},
{
"command"
:
"git.openFile"
,
"command"
:
"git.openFile
2
"
,
"when"
:
"scmProvider == git && scmResourceGroup == workingTree"
,
"group"
:
"inline0"
},
...
...
extensions/git/resources/icons/dark/open-file-mono.svg
0 → 100644
浏览文件 @
590d36f9
<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>
\ No newline at end of file
extensions/git/resources/icons/light/open-file-mono.svg
0 → 100644
浏览文件 @
590d36f9
<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>
\ No newline at end of file
extensions/git/resources/icons/light/open-file.svg
浏览文件 @
590d36f9
<!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>
\ No newline at end of file
<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>
\ No newline at end of file
extensions/git/src/commands.ts
浏览文件 @
590d36f9
...
...
@@ -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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录