Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
13414612
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,发现更多精彩内容 >>
提交
13414612
编写于
8月 22, 2018
作者:
D
Dirk Baeumer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove stdfork from processes.ts
上级
76f25881
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
30 deletion
+3
-30
src/vs/base/node/processes.ts
src/vs/base/node/processes.ts
+3
-30
未找到文件。
src/vs/base/node/processes.ts
浏览文件 @
13414612
...
...
@@ -6,7 +6,6 @@
import
*
as
path
from
'
path
'
;
import
*
as
cp
from
'
child_process
'
;
import
{
fork
}
from
'
vs/base/node/stdFork
'
;
import
*
as
nls
from
'
vs/nls
'
;
import
{
TPromise
,
TValueCallback
,
ErrorCallback
}
from
'
vs/base/common/winjs.base
'
;
import
*
as
Types
from
'
vs/base/common/types
'
;
...
...
@@ -74,7 +73,6 @@ export function getWindowsShell(): string {
export
abstract
class
AbstractProcess
<
TProgressData
>
{
private
cmd
:
string
;
private
module
:
string
;
private
args
:
string
[];
private
options
:
CommandOptions
|
ForkOptions
;
protected
shell
:
boolean
;
...
...
@@ -107,18 +105,12 @@ export abstract class AbstractProcess<TProgressData> {
public
constructor
(
executable
:
Executable
);
public
constructor
(
cmd
:
string
,
args
:
string
[],
shell
:
boolean
,
options
:
CommandOptions
);
public
constructor
(
module
:
string
,
args
:
string
[],
options
:
ForkOptions
);
public
constructor
(
arg1
:
string
|
Executable
,
arg2
?:
string
[],
arg3
?:
boolean
|
ForkOptions
,
arg4
?:
CommandOptions
)
{
if
(
arg4
)
{
public
constructor
(
arg1
:
string
|
Executable
,
arg2
?:
string
[],
arg3
?:
boolean
,
arg4
?:
CommandOptions
)
{
if
(
arg2
!==
void
0
&&
arg3
!==
void
0
&&
arg4
!==
void
0
)
{
this
.
cmd
=
<
string
>
arg1
;
this
.
args
=
arg2
;
this
.
shell
=
<
boolean
>
arg3
;
this
.
shell
=
arg3
;
this
.
options
=
arg4
;
}
else
if
(
arg3
&&
arg2
)
{
this
.
module
=
<
string
>
arg1
;
this
.
args
=
arg2
;
this
.
shell
=
false
;
this
.
options
=
<
ForkOptions
>
arg3
;
}
else
{
let
executable
=
<
Executable
>
arg1
;
this
.
cmd
=
executable
.
command
;
...
...
@@ -233,24 +225,6 @@ export abstract class AbstractProcess<TProgressData> {
}
else
{
if
(
this
.
cmd
)
{
childProcess
=
cp
.
spawn
(
this
.
cmd
,
this
.
args
,
this
.
options
);
}
else
if
(
this
.
module
)
{
this
.
childProcessPromise
=
new
TPromise
<
cp
.
ChildProcess
>
((
c
,
e
)
=>
{
fork
(
this
.
module
,
this
.
args
,
<
ForkOptions
>
this
.
options
,
(
error
:
any
,
childProcess
:
cp
.
ChildProcess
)
=>
{
if
(
error
)
{
e
(
error
);
ee
({
terminated
:
this
.
terminateRequested
,
error
:
error
});
return
;
}
this
.
childProcess
=
childProcess
;
if
(
this
.
pidResolve
)
{
this
.
pidResolve
(
Types
.
isNumber
(
childProcess
.
pid
)
?
childProcess
.
pid
:
-
1
);
this
.
pidResolve
=
undefined
;
}
this
.
childProcess
.
on
(
'
close
'
,
closeHandler
);
this
.
handleSpawn
(
childProcess
,
cc
,
pp
,
ee
,
false
);
c
(
childProcess
);
});
});
}
}
if
(
childProcess
)
{
...
...
@@ -345,7 +319,6 @@ export class LineProcess extends AbstractProcess<LineData> {
public
constructor
(
executable
:
Executable
);
public
constructor
(
cmd
:
string
,
args
:
string
[],
shell
:
boolean
,
options
:
CommandOptions
);
public
constructor
(
module
:
string
,
args
:
string
[],
options
:
ForkOptions
);
public
constructor
(
arg1
:
string
|
Executable
,
arg2
?:
string
[],
arg3
?:
boolean
|
ForkOptions
,
arg4
?:
CommandOptions
)
{
super
(
<
any
>
arg1
,
arg2
,
<
any
>
arg3
,
arg4
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录