Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
ce6b4581
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce6b4581
编写于
2月 05, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more linting
上级
db58168a
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
14 addition
and
11 deletion
+14
-11
src/vs/base/node/encoding.ts
src/vs/base/node/encoding.ts
+1
-1
src/vs/base/node/extfs.ts
src/vs/base/node/extfs.ts
+1
-1
src/vs/base/node/flow.ts
src/vs/base/node/flow.ts
+3
-3
src/vs/base/node/processes.ts
src/vs/base/node/processes.ts
+2
-2
src/vs/base/node/proxy.ts
src/vs/base/node/proxy.ts
+0
-1
src/vs/base/node/request.ts
src/vs/base/node/request.ts
+7
-3
未找到文件。
src/vs/base/node/encoding.ts
浏览文件 @
ce6b4581
...
...
@@ -41,7 +41,7 @@ export function detectEncodingByBOMFromBuffer(buffer: NodeBuffer, bytesRead: num
}
return
null
;
}
;
}
/**
* Detects the Byte Order Mark in a given file.
...
...
src/vs/base/node/extfs.ts
浏览文件 @
ce6b4581
...
...
@@ -32,7 +32,7 @@ export function readdir(path: string, callback: (error: Error, files: string[])
}
return
readdirNormalize
(
path
,
callback
);
}
;
}
function
readdirNormalize
(
path
:
string
,
callback
:
(
error
:
Error
,
files
:
string
[])
=>
void
):
void
{
fs
.
readdir
(
path
,
(
error
,
children
)
=>
{
...
...
src/vs/base/node/flow.ts
浏览文件 @
ce6b4581
...
...
@@ -37,7 +37,7 @@ export function parallel<T, E>(list: T[], fn: (item: T, callback: (err: Error, r
}
});
});
}
;
}
/**
* Executes the given function (fn) over the given array of items (param) in sequential order and returns the first occurred error or the result as
...
...
@@ -117,7 +117,7 @@ export function loop<E>(param: any, fn: (item: any, callback: (error: Error, res
// Start looping with first element in array
looper
(
0
);
}
}
;
}
function
Sequence
(
sequences
:
{
(...
param
:
any
[]):
void
;
}[]):
void
{
...
...
@@ -186,4 +186,4 @@ export function sequence(errorHandler: (error: Error) => void, ...sequences: Fun
export
function
sequence
(
sequences
:
Function
[]):
void
;
export
function
sequence
(
sequences
:
any
):
void
{
Sequence
((
Array
.
isArray
(
sequences
))
?
sequences
:
Array
.
prototype
.
slice
.
call
(
arguments
));
};
\ No newline at end of file
}
\ No newline at end of file
src/vs/base/node/processes.ts
浏览文件 @
ce6b4581
...
...
@@ -204,7 +204,7 @@ export abstract class AbstractProcess<TProgressData> {
result
.
cmdCode
=
<
number
>
data
;
}
cc
(
result
);
}
}
;
if
(
this
.
shell
&&
Platform
.
isWindows
)
{
let
options
:
any
=
Objects
.
clone
(
this
.
options
);
options
.
windowsVerbatimArguments
=
true
;
...
...
@@ -228,7 +228,7 @@ export abstract class AbstractProcess<TProgressData> {
];
if
(
quotedCommand
)
{
if
(
quotedArg
)
{
args
.
push
(
'
"
'
+
commandLine
.
join
(
'
'
)
+
'
"
'
)
args
.
push
(
'
"
'
+
commandLine
.
join
(
'
'
)
+
'
"
'
)
;
}
else
if
(
commandLine
.
length
>
1
)
{
args
.
push
(
'
"
'
+
commandLine
[
0
]
+
'
"
'
+
'
'
+
commandLine
.
slice
(
1
).
join
(
'
'
));
}
else
{
...
...
src/vs/base/node/proxy.ts
浏览文件 @
ce6b4581
...
...
@@ -7,7 +7,6 @@
import
{
Url
,
parse
as
parseUrl
}
from
'
url
'
;
import
{
isBoolean
}
from
'
vs/base/common/types
'
;
import
{
assign
}
from
'
vs/base/common/objects
'
;
import
HttpProxyAgent
=
require
(
'
http-proxy-agent
'
);
import
HttpsProxyAgent
=
require
(
'
https-proxy-agent
'
);
...
...
src/vs/base/node/request.ts
浏览文件 @
ce6b4581
...
...
@@ -9,7 +9,7 @@ import { Promise, TPromise } from 'vs/base/common/winjs.base';
import
{
isBoolean
}
from
'
vs/base/common/types
'
;
import
https
=
require
(
'
https
'
);
import
http
=
require
(
'
http
'
);
import
{
Url
,
parse
as
parseUrl
}
from
'
url
'
;
import
{
parse
as
parseUrl
}
from
'
url
'
;
import
{
createWriteStream
}
from
'
fs
'
;
import
{
assign
}
from
'
vs/base/common/objects
'
;
...
...
@@ -64,8 +64,12 @@ export function request(options: IRequestOptions): TPromise<IRequestResult> {
});
req
.
on
(
'
error
'
,
e
);
if
(
options
.
timeout
)
req
.
setTimeout
(
options
.
timeout
);
if
(
options
.
data
)
req
.
write
(
options
.
data
);
if
(
options
.
timeout
)
{
req
.
setTimeout
(
options
.
timeout
);
}
if
(
options
.
data
)
{
req
.
write
(
options
.
data
);
}
req
.
end
();
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录