Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
42e938f9
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,发现更多精彩内容 >>
提交
42e938f9
编写于
1月 26, 2017
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
git: remove denodeify dependency
上级
5690a478
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
51 deletion
+8
-51
extensions/git/package.json
extensions/git/package.json
+0
-1
extensions/git/src/git.ts
extensions/git/src/git.ts
+3
-4
extensions/git/src/typings.json
extensions/git/src/typings.json
+0
-5
extensions/git/src/typings/globals/denodeify/index.d.ts
extensions/git/src/typings/globals/denodeify/index.d.ts
+0
-31
extensions/git/src/typings/globals/denodeify/typings.json
extensions/git/src/typings/globals/denodeify/typings.json
+0
-8
extensions/git/src/typings/index.d.ts
extensions/git/src/typings/index.d.ts
+0
-1
extensions/git/src/util.ts
extensions/git/src/util.ts
+5
-1
未找到文件。
extensions/git/package.json
浏览文件 @
42e938f9
...
...
@@ -350,7 +350,6 @@
}
},
"dependencies"
:
{
"denodeify"
:
"^1.2.1"
,
"vscode-nls"
:
"^2.0.1"
}
}
\ No newline at end of file
extensions/git/src/git.ts
浏览文件 @
42e938f9
...
...
@@ -9,14 +9,13 @@ import * as fs from 'fs';
import
*
as
path
from
'
path
'
;
import
*
as
os
from
'
os
'
;
import
*
as
cp
from
'
child_process
'
;
import
*
as
denodeify
from
'
denodeify
'
;
import
{
assign
,
uniqBy
,
groupBy
,
IDisposable
,
toDisposable
,
dispose
}
from
'
./util
'
;
import
{
assign
,
uniqBy
,
groupBy
,
denodeify
,
IDisposable
,
toDisposable
,
dispose
}
from
'
./util
'
;
import
{
EventEmitter
,
Event
}
from
'
vscode
'
;
import
*
as
nls
from
'
vscode-nls
'
;
const
localize
=
nls
.
loadMessageBundle
();
const
readdir
=
denodeify
(
fs
.
readdir
);
const
readfile
=
denodeify
<
string
,
string
,
string
>
(
fs
.
readFile
);
const
readdir
=
denodeify
<
string
[]
>
(
fs
.
readdir
);
const
readfile
=
denodeify
<
string
>
(
fs
.
readFile
);
export
interface
IGit
{
path
:
string
;
...
...
extensions/git/src/typings.json
已删除
100644 → 0
浏览文件 @
5690a478
{
"globalDependencies"
:
{
"denodeify"
:
"registry:dt/denodeify#1.2.1+20160316155526"
}
}
\ No newline at end of file
extensions/git/src/typings/globals/denodeify/index.d.ts
已删除
100644 → 0
浏览文件 @
5690a478
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/denodeify/denodeify.d.ts
declare
module
"
denodeify
"
{
function
_
<
R
>
(
fn
:
_
.
F0
<
R
>
,
transformer
?:
_
.
M
):
()
=>
Promise
<
R
>
;
function
_
<
A
,
R
>
(
fn
:
_
.
F1
<
A
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
)
=>
Promise
<
R
>
;
function
_
<
A
,
B
,
R
>
(
fn
:
_
.
F2
<
A
,
B
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
,
b
:
B
)
=>
Promise
<
R
>
;
function
_
<
A
,
B
,
C
,
R
>
(
fn
:
_
.
F3
<
A
,
B
,
C
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
,
b
:
B
,
c
:
C
)
=>
Promise
<
R
>
;
function
_
<
A
,
B
,
C
,
D
,
R
>
(
fn
:
_
.
F4
<
A
,
B
,
C
,
D
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
)
=>
Promise
<
R
>
;
function
_
<
A
,
B
,
C
,
D
,
E
,
R
>
(
fn
:
_
.
F5
<
A
,
B
,
C
,
D
,
E
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
)
=>
Promise
<
R
>
;
function
_
<
A
,
B
,
C
,
D
,
E
,
F
,
R
>
(
fn
:
_
.
F6
<
A
,
B
,
C
,
D
,
E
,
F
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
,
f
:
F
)
=>
Promise
<
R
>
;
function
_
<
A
,
B
,
C
,
D
,
E
,
F
,
G
,
R
>
(
fn
:
_
.
F7
<
A
,
B
,
C
,
D
,
E
,
F
,
G
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
,
f
:
F
,
g
:
G
)
=>
Promise
<
R
>
;
function
_
<
A
,
B
,
C
,
D
,
E
,
F
,
G
,
H
,
R
>
(
fn
:
_
.
F8
<
A
,
B
,
C
,
D
,
E
,
F
,
G
,
H
,
R
>
,
transformer
?:
_
.
M
):
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
,
f
:
F
,
g
:
G
,
h
:
H
)
=>
Promise
<
R
>
;
function
_
(
fn
:
_
.
F
,
transformer
?:
_
.
M
):
(...
args
:
any
[])
=>
Promise
<
any
>
;
module
_
{
type
Callback
<
R
>
=
(
err
:
Error
,
result
:
R
)
=>
any
;
type
F0
<
R
>
=
(
cb
:
Callback
<
R
>
)
=>
any
;
type
F1
<
A
,
R
>
=
(
a
:
A
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F2
<
A
,
B
,
R
>
=
(
a
:
A
,
b
:
B
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F3
<
A
,
B
,
C
,
R
>
=
(
a
:
A
,
b
:
B
,
c
:
C
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F4
<
A
,
B
,
C
,
D
,
R
>
=
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F5
<
A
,
B
,
C
,
D
,
E
,
R
>
=
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F6
<
A
,
B
,
C
,
D
,
E
,
F
,
R
>
=
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
,
f
:
F
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F7
<
A
,
B
,
C
,
D
,
E
,
F
,
G
,
R
>
=
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
,
f
:
F
,
g
:
G
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F8
<
A
,
B
,
C
,
D
,
E
,
F
,
G
,
H
,
R
>
=
(
a
:
A
,
b
:
B
,
c
:
C
,
d
:
D
,
e
:
E
,
f
:
F
,
g
:
G
,
h
:
H
,
cb
:
Callback
<
R
>
)
=>
any
;
type
F
=
(...
args
:
any
[])
=>
any
;
type
M
=
(
err
:
Error
,
...
args
:
any
[])
=>
any
[];
}
export
=
_
;
}
extensions/git/src/typings/globals/denodeify/typings.json
已删除
100644 → 0
浏览文件 @
5690a478
{
"resolution"
:
"main"
,
"tree"
:
{
"src"
:
"https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/denodeify/denodeify.d.ts"
,
"raw"
:
"registry:dt/denodeify#1.2.1+20160316155526"
,
"typings"
:
"https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/denodeify/denodeify.d.ts"
}
}
extensions/git/src/typings/index.d.ts
已删除
100644 → 0
浏览文件 @
5690a478
/// <reference path="globals/denodeify/index.d.ts" />
extensions/git/src/util.ts
浏览文件 @
42e938f9
...
...
@@ -88,4 +88,8 @@ export function groupBy<T>(arr: T[], fn: (el: T) => string): { [key: string]: T[
result
[
key
]
=
[...(
result
[
key
]
||
[]),
el
];
return
result
;
},
Object
.
create
(
null
));
}
\ No newline at end of file
}
export
function
denodeify
<
R
>
(
fn
:
Function
):
(...
args
)
=>
Promise
<
R
>
{
return
(...
args
)
=>
new
Promise
((
c
,
e
)
=>
fn
(...
args
,
(
err
,
r
)
=>
err
?
e
(
err
)
:
c
(
r
)));
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录