Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
65e0142d
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,发现更多精彩内容 >>
提交
65e0142d
编写于
4月 14, 2016
作者:
I
isidor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
output: polish api
上级
70a33d4e
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
72 addition
and
52 deletion
+72
-52
src/vs/base/browser/ui/actionbar/actionbar.ts
src/vs/base/browser/ui/actionbar/actionbar.ts
+5
-1
src/vs/workbench/api/node/extHostOutputService.ts
src/vs/workbench/api/node/extHostOutputService.ts
+1
-1
src/vs/workbench/parts/extensions/electron-browser/extensionsWidgets.ts
...ch/parts/extensions/electron-browser/extensionsWidgets.ts
+1
-1
src/vs/workbench/parts/git/browser/gitOutput.ts
src/vs/workbench/parts/git/browser/gitOutput.ts
+1
-1
src/vs/workbench/parts/git/browser/gitServices.ts
src/vs/workbench/parts/git/browser/gitServices.ts
+1
-1
src/vs/workbench/parts/git/browser/views/changes/changesView.ts
.../workbench/parts/git/browser/views/changes/changesView.ts
+1
-1
src/vs/workbench/parts/output/browser/outputActions.ts
src/vs/workbench/parts/output/browser/outputActions.ts
+14
-8
src/vs/workbench/parts/output/browser/outputPanel.ts
src/vs/workbench/parts/output/browser/outputPanel.ts
+3
-3
src/vs/workbench/parts/output/common/output.ts
src/vs/workbench/parts/output/common/output.ts
+15
-3
src/vs/workbench/parts/output/common/outputEditorInput.ts
src/vs/workbench/parts/output/common/outputEditorInput.ts
+10
-18
src/vs/workbench/parts/output/common/outputServices.ts
src/vs/workbench/parts/output/common/outputServices.ts
+15
-7
src/vs/workbench/parts/tasks/electron-browser/task.contribution.ts
...rkbench/parts/tasks/electron-browser/task.contribution.ts
+3
-3
src/vs/workbench/parts/tasks/node/processRunnerSystem.ts
src/vs/workbench/parts/tasks/node/processRunnerSystem.ts
+2
-4
未找到文件。
src/vs/base/browser/ui/actionbar/actionbar.ts
浏览文件 @
65e0142d
...
...
@@ -749,10 +749,14 @@ export class SelectActionItem extends BaseActionItem {
private
registerListeners
():
void
{
this
.
toDispose
.
push
(
DOM
.
addStandardDisposableListener
(
this
.
select
,
'
change
'
,
(
e
)
=>
{
this
.
actionRunner
.
run
(
this
.
_action
,
e
.
target
.
value
).
done
();
this
.
actionRunner
.
run
(
this
.
_action
,
this
.
getActionContext
(
e
.
target
.
value
)
).
done
();
}));
}
protected
getActionContext
(
option
:
string
)
{
return
option
;
}
public
focus
():
void
{
if
(
this
.
select
)
{
this
.
select
.
focus
();
...
...
src/vs/workbench/api/node/extHostOutputService.ts
浏览文件 @
65e0142d
...
...
@@ -87,7 +87,7 @@ export class MainThreadOutputService {
}
public
getOutputChannel
(
channelId
):
IOutputChannel
{
return
this
.
_outputService
.
get
Output
Channel
(
channelId
);
return
this
.
_outputService
.
getChannel
(
channelId
);
}
public
close
(
channel
:
string
):
TPromise
<
void
>
{
...
...
src/vs/workbench/parts/extensions/electron-browser/extensionsWidgets.ts
浏览文件 @
65e0142d
...
...
@@ -115,7 +115,7 @@ export class ExtensionsStatusbarItem implements IStatusbarItem {
const
name
=
extension
&&
extension
.
name
;
const
message
=
name
?
`
${
name
}
:
${
m
.
message
}
`
:
m
.
message
;
const
outputChannel
=
this
.
outputService
.
get
Output
Channel
(
ExtensionsChannelId
);
const
outputChannel
=
this
.
outputService
.
getChannel
(
ExtensionsChannelId
);
outputChannel
.
append
(
message
);
outputChannel
.
show
(
true
);
});
...
...
src/vs/workbench/parts/git/browser/gitOutput.ts
浏览文件 @
65e0142d
...
...
@@ -47,7 +47,7 @@ export class GitOutput implements ext.IWorkbenchContribution {
}
private
onOutput
(
output
:
string
):
void
{
this
.
outputService
.
get
Output
Channel
(
'
Git
'
).
append
(
output
);
this
.
outputService
.
getChannel
(
'
Git
'
).
append
(
output
);
}
public
dispose
():
void
{
...
...
src/vs/workbench/parts/git/browser/gitServices.ts
浏览文件 @
65e0142d
...
...
@@ -689,7 +689,7 @@ export class GitService extends ee.EventEmitter
}
var
error
:
Error
;
var
showOutputAction
=
new
actions
.
Action
(
'
show.gitOutput
'
,
nls
.
localize
(
'
showOutput
'
,
"
Show Output
"
),
null
,
true
,
()
=>
this
.
outputService
.
get
Output
Channel
(
'
Git
'
).
show
());
var
showOutputAction
=
new
actions
.
Action
(
'
show.gitOutput
'
,
nls
.
localize
(
'
showOutput
'
,
"
Show Output
"
),
null
,
true
,
()
=>
this
.
outputService
.
getChannel
(
'
Git
'
).
show
());
var
cancelAction
=
new
actions
.
Action
(
'
close.message
'
,
nls
.
localize
(
'
cancel
'
,
"
Cancel
"
),
null
,
true
,
()
=>
winjs
.
TPromise
.
as
(
true
));
error
=
errors
.
create
(
...
...
src/vs/workbench/parts/git/browser/views/changes/changesView.ts
浏览文件 @
65e0142d
...
...
@@ -264,7 +264,7 @@ export class ChangesView extends EventEmitter.EventEmitter implements GitView.IV
this
.
instantiationService
.
createInstance
(
GitActions
.
GlobalUnstageAction
),
this
.
instantiationService
.
createInstance
(
GitActions
.
GlobalUndoAction
),
new
ActionBar
.
Separator
(),
new
Actions
.
Action
(
'
show.gitOutput
'
,
nls
.
localize
(
'
showOutput
'
,
"
Show Git Output
"
),
null
,
true
,
()
=>
this
.
outputService
.
get
Output
Channel
(
'
Git
'
).
show
())
new
Actions
.
Action
(
'
show.gitOutput
'
,
nls
.
localize
(
'
showOutput
'
,
"
Show Git Output
"
),
null
,
true
,
()
=>
this
.
outputService
.
getChannel
(
'
Git
'
).
show
())
];
this
.
secondaryActions
.
forEach
(
a
=>
this
.
toDispose
.
push
(
a
));
...
...
src/vs/workbench/parts/output/browser/outputActions.ts
浏览文件 @
65e0142d
...
...
@@ -38,7 +38,7 @@ export class ToggleOutputAction extends Action {
return
TPromise
.
as
(
null
);
}
return
this
.
outputService
.
get
OutputChannel
(
this
.
outputService
.
getActiveChannelId
()
).
show
();
return
this
.
outputService
.
get
ActiveChannel
(
).
show
();
}
}
...
...
@@ -52,7 +52,7 @@ export class ClearOutputAction extends Action {
}
public
run
():
TPromise
<
any
>
{
this
.
outputService
.
get
OutputChannel
(
this
.
outputService
.
getActiveChannelId
()
).
clear
();
this
.
outputService
.
get
ActiveChannel
(
).
clear
();
this
.
panelService
.
getActivePanel
().
focus
();
return
TPromise
.
as
(
true
);
...
...
@@ -83,7 +83,7 @@ export class ClearOutputEditorAction extends EditorAction {
}
public
run
():
TPromise
<
boolean
>
{
this
.
outputService
.
get
OutputChannel
(
this
.
outputService
.
getActiveChannelId
()
).
clear
();
this
.
outputService
.
get
ActiveChannel
(
).
clear
();
return
TPromise
.
as
(
false
);
}
}
...
...
@@ -99,7 +99,7 @@ export class SwitchOutputAction extends Action {
}
public
run
(
channelId
?:
string
):
TPromise
<
any
>
{
return
this
.
outputService
.
get
Output
Channel
(
channelId
).
show
();
return
this
.
outputService
.
getChannel
(
channelId
).
show
();
}
}
...
...
@@ -109,19 +109,25 @@ export class SwitchOutputActionItem extends SelectActionItem {
action
:
IAction
,
@
IOutputService
private
outputService
:
IOutputService
)
{
super
(
null
,
action
,
SwitchOutputActionItem
.
getChannel
s
(
outputService
),
Math
.
max
(
0
,
SwitchOutputActionItem
.
getChannels
(
outputService
).
indexOf
(
outputService
.
getActiveChannelId
()
)));
super
(
null
,
action
,
SwitchOutputActionItem
.
getChannel
Labels
(
outputService
),
Math
.
max
(
0
,
SwitchOutputActionItem
.
getChannelLabels
(
outputService
).
indexOf
(
outputService
.
getActiveChannel
().
label
)));
this
.
toDispose
.
push
(
this
.
outputService
.
onOutputChannel
(
this
.
onOutputChannel
,
this
));
this
.
toDispose
.
push
(
this
.
outputService
.
onActiveOutputChannel
(
this
.
onOutputChannel
,
this
));
}
protected
getActionContext
(
option
:
string
):
string
{
const
channel
=
(
<
IOutputChannelRegistry
>
Registry
.
as
(
Extensions
.
OutputChannels
)).
getChannels
().
filter
(
channelData
=>
channelData
.
label
===
option
).
pop
();
return
channel
?
channel
.
id
:
option
;
}
private
onOutputChannel
():
void
{
let
channels
=
SwitchOutputActionItem
.
getChannels
(
this
.
outputService
);
let
selected
=
Math
.
max
(
0
,
channels
.
indexOf
(
this
.
outputService
.
getActiveChannel
Id
()
));
let
channels
=
SwitchOutputActionItem
.
getChannel
Label
s
(
this
.
outputService
);
let
selected
=
Math
.
max
(
0
,
channels
.
indexOf
(
this
.
outputService
.
getActiveChannel
().
label
));
this
.
setOptions
(
channels
,
selected
);
}
private
static
getChannels
(
outputService
:
IOutputService
):
string
[]
{
private
static
getChannel
Label
s
(
outputService
:
IOutputService
):
string
[]
{
const
contributedChannels
=
(
<
IOutputChannelRegistry
>
Registry
.
as
(
Extensions
.
OutputChannels
)).
getChannels
().
map
(
channelData
=>
channelData
.
label
);
return
contributedChannels
.
sort
();
// sort by name
}
...
...
src/vs/workbench/parts/output/browser/outputPanel.ts
浏览文件 @
65e0142d
...
...
@@ -85,8 +85,8 @@ export class OutputPanel extends StringEditor {
options
.
rulers
=
[];
options
.
folding
=
false
;
let
channel
=
this
.
outputService
.
getActiveChannelId
();
options
.
ariaLabel
=
channel
?
nls
.
localize
(
'
outputPanelWithInputAriaLabel
'
,
"
{0}, Output panel
"
,
channel
)
:
nls
.
localize
(
'
outputPanelAriaLabel
'
,
"
Output panel
"
);
const
channel
=
this
.
outputService
.
getActiveChannel
();
options
.
ariaLabel
=
channel
?
nls
.
localize
(
'
outputPanelWithInputAriaLabel
'
,
"
{0}, Output panel
"
,
channel
.
label
)
:
nls
.
localize
(
'
outputPanelAriaLabel
'
,
"
Output panel
"
);
return
options
;
}
...
...
@@ -97,7 +97,7 @@ export class OutputPanel extends StringEditor {
public
create
(
parent
:
Builder
):
TPromise
<
void
>
{
return
super
.
create
(
parent
)
.
then
(()
=>
this
.
setInput
(
OutputEditorInput
.
getInstance
(
this
.
instantiationService
,
this
.
outputService
.
getActiveChannel
Id
()),
null
));
.
then
(()
=>
this
.
setInput
(
OutputEditorInput
.
getInstance
(
this
.
instantiationService
,
this
.
outputService
.
getActiveChannel
()),
null
));
}
public
focus
():
void
{
...
...
src/vs/workbench/parts/output/common/output.ts
浏览文件 @
65e0142d
...
...
@@ -56,13 +56,15 @@ export interface IOutputService {
/**
* Given the channel id returns the output channel instance.
* Returns null if output channel with id is not registered.
*/
get
Output
Channel
(
id
:
string
):
IOutputChannel
;
getChannel
(
id
:
string
):
IOutputChannel
;
/**
* Returns the name of the currently opened channel.
* Returns the currently active channel.
* Only one channel can be active at a given moment.
*/
getActiveChannel
Id
():
string
;
getActiveChannel
():
IOutputChannel
;
/**
* Allows to register on Output events.
...
...
@@ -82,6 +84,16 @@ export interface IOutputService {
export
interface
IOutputChannel
{
/**
* Identifier of the output channel.
*/
id
:
string
;
/**
* Label of the output channel to be displayed to the user.
*/
label
:
string
;
/**
* Returns the received output content.
*/
...
...
src/vs/workbench/parts/output/common/outputEditorInput.ts
浏览文件 @
65e0142d
...
...
@@ -27,37 +27,33 @@ export class OutputEditorInput extends StringEditorInput {
private
static
instances
:
{
[
channel
:
string
]:
OutputEditorInput
;
}
=
Object
.
create
(
null
);
private
outputSet
:
boolean
;
private
channelId
:
string
;
private
bufferedOutput
:
string
;
private
toDispose
:
lifecycle
.
IDisposable
[];
private
appendOutputScheduler
:
RunOnceScheduler
;
private
outputChannel
:
IOutputChannel
;
public
static
getInstances
():
OutputEditorInput
[]
{
return
Object
.
keys
(
OutputEditorInput
.
instances
).
map
((
key
)
=>
OutputEditorInput
.
instances
[
key
]);
}
public
static
getInstance
(
instantiationService
:
IInstantiationService
,
channel
:
string
):
OutputEditorInput
{
if
(
OutputEditorInput
.
instances
[
channel
])
{
return
OutputEditorInput
.
instances
[
channel
];
public
static
getInstance
(
instantiationService
:
IInstantiationService
,
channel
:
IOutputChannel
):
OutputEditorInput
{
if
(
OutputEditorInput
.
instances
[
channel
.
id
])
{
return
OutputEditorInput
.
instances
[
channel
.
id
];
}
OutputEditorInput
.
instances
[
channel
]
=
instantiationService
.
createInstance
(
OutputEditorInput
,
channel
);
OutputEditorInput
.
instances
[
channel
.
id
]
=
instantiationService
.
createInstance
(
OutputEditorInput
,
channel
);
return
OutputEditorInput
.
instances
[
channel
];
return
OutputEditorInput
.
instances
[
channel
.
id
];
}
constructor
(
channelId
:
string
,
private
outputChannel
:
IOutputChannel
,
@
IInstantiationService
instantiationService
:
IInstantiationService
,
@
IOutputService
private
outputService
:
IOutputService
,
@
IPanelService
private
panelService
:
IPanelService
,
@
IEventService
private
eventService
:
IEventService
)
{
super
(
nls
.
localize
(
'
output
'
,
"
Output
"
),
channelId
?
nls
.
localize
(
'
outputChannel
'
,
"
for '{0}'
"
,
channelId
)
:
''
,
''
,
OUTPUT_MIME
,
true
,
instantiationService
);
super
(
nls
.
localize
(
'
output
'
,
"
Output
"
),
outputChannel
?
nls
.
localize
(
'
outputChannel
'
,
"
for '{0}'
"
,
outputChannel
.
label
)
:
''
,
''
,
OUTPUT_MIME
,
true
,
instantiationService
);
this
.
channelId
=
channelId
;
this
.
outputChannel
=
this
.
outputService
.
getOutputChannel
(
channelId
);
this
.
bufferedOutput
=
''
;
this
.
toDispose
=
[];
this
.
toDispose
.
push
(
this
.
outputService
.
onOutput
(
this
.
onOutputReceived
,
this
));
...
...
@@ -88,7 +84,7 @@ export class OutputEditorInput extends StringEditorInput {
}
private
onOutputReceived
(
e
:
IOutputEvent
):
void
{
if
(
this
.
outputSet
&&
e
.
channelId
===
this
.
channelI
d
)
{
if
(
this
.
outputSet
&&
e
.
channelId
===
this
.
outputChannel
.
i
d
)
{
if
(
e
.
output
)
{
this
.
bufferedOutput
=
strings
.
appendWithLimit
(
this
.
bufferedOutput
,
e
.
output
,
MAX_OUTPUT_LENGTH
);
this
.
scheduleOutputAppend
();
...
...
@@ -100,7 +96,7 @@ export class OutputEditorInput extends StringEditorInput {
private
isVisible
():
boolean
{
const
panel
=
this
.
panelService
.
getActivePanel
();
return
panel
&&
panel
.
getId
()
===
OUTPUT_PANEL_ID
&&
this
.
outputService
.
getActiveChannel
Id
()
===
this
.
channelI
d
;
return
panel
&&
panel
.
getId
()
===
OUTPUT_PANEL_ID
&&
this
.
outputService
.
getActiveChannel
().
id
===
this
.
outputChannel
.
i
d
;
}
private
scheduleOutputAppend
():
void
{
...
...
@@ -127,14 +123,10 @@ export class OutputEditorInput extends StringEditorInput {
});
}
public
getChannel
():
string
{
return
this
.
channelId
;
}
public
matches
(
otherInput
:
any
):
boolean
{
if
(
otherInput
instanceof
OutputEditorInput
)
{
let
otherOutputEditorInput
=
<
OutputEditorInput
>
otherInput
;
if
(
otherOutputEditorInput
.
getChannel
()
===
this
.
channelI
d
)
{
if
(
otherOutputEditorInput
.
outputChannel
.
id
===
this
.
outputChannel
.
i
d
)
{
return
super
.
matches
(
otherInput
);
}
}
...
...
src/vs/workbench/parts/output/common/outputServices.ts
浏览文件 @
65e0142d
...
...
@@ -60,10 +60,18 @@ export class OutputService implements IOutputService {
return
this
.
_onActiveOutputChannel
.
event
;
}
public
getOutputChannel
(
id
:
string
):
IOutputChannel
{
public
getChannel
(
id
:
string
):
IOutputChannel
{
const
channelData
=
(
<
IOutputChannelRegistry
>
Registry
.
as
(
Extensions
.
OutputChannels
)).
getChannels
().
filter
(
channelData
=>
channelData
.
id
===
id
).
pop
();
if
(
!
channelData
)
{
return
null
;
}
const
self
=
this
;
return
{
id
,
label
:
channelData
.
label
,
get
output
()
{
return
this
.
getOutput
(
id
);
return
self
.
getOutput
(
id
);
},
append
:
(
output
:
string
)
=>
this
.
append
(
id
,
output
),
show
:
(
preserveFocus
:
boolean
)
=>
this
.
showOutput
(
id
,
preserveFocus
),
...
...
@@ -91,12 +99,12 @@ export class OutputService implements IOutputService {
this
.
_onOutput
.
fire
({
output
:
output
,
channelId
:
channelId
});
}
p
rivate
getOutput
(
channelId
:
string
):
string
{
return
this
.
receivedOutput
[
channelId
]
||
''
;
p
ublic
getActiveChannel
():
IOutputChannel
{
return
this
.
getChannel
(
this
.
activeChannelId
)
;
}
p
ublic
getActiveChannelId
(
):
string
{
return
this
.
activeChannelId
;
p
rivate
getOutput
(
channelId
:
string
):
string
{
return
this
.
receivedOutput
[
channelId
]
||
''
;
}
private
clearOutput
(
channelId
:
string
):
void
{
...
...
@@ -116,7 +124,7 @@ export class OutputService implements IOutputService {
this
.
_onActiveOutputChannel
.
fire
(
channelId
);
// emit event that a new channel is active
return
this
.
panelService
.
openPanel
(
OUTPUT_PANEL_ID
,
!
preserveFocus
).
then
((
outputPanel
:
OutputPanel
)
=>
{
return
outputPanel
&&
outputPanel
.
setInput
(
OutputEditorInput
.
getInstance
(
this
.
instantiationService
,
channelId
),
EditorOptions
.
create
({
preserveFocus
:
preserveFocus
})).
return
outputPanel
&&
outputPanel
.
setInput
(
OutputEditorInput
.
getInstance
(
this
.
instantiationService
,
this
.
getChannel
(
channelId
)
),
EditorOptions
.
create
({
preserveFocus
:
preserveFocus
})).
then
(()
=>
outputPanel
);
});
}
...
...
src/vs/workbench/parts/tasks/electron-browser/task.contribution.ts
浏览文件 @
65e0142d
...
...
@@ -182,7 +182,7 @@ class ConfigureTaskRunnerAction extends Action {
}
let
contentPromise
:
TPromise
<
string
>
;
if
(
selection
.
autoDetect
)
{
const
outputChannel
=
this
.
outputService
.
get
Output
Channel
(
TaskService
.
OutputChannelId
);
const
outputChannel
=
this
.
outputService
.
getChannel
(
TaskService
.
OutputChannelId
);
outputChannel
.
show
();
outputChannel
.
append
(
nls
.
localize
(
'
ConfigureTaskRunnerAction.autoDetecting
'
,
'
Auto detecting tasks for {0}
'
,
selection
.
id
)
+
'
\n
'
);
let
detector
=
new
ProcessRunnerDetector
(
this
.
fileService
,
this
.
contextService
,
new
SystemVariables
(
this
.
editorService
,
this
.
contextService
));
...
...
@@ -288,7 +288,7 @@ class ShowLogAction extends AbstractTaskAction {
}
public
run
():
Promise
{
return
this
.
outputService
.
get
Output
Channel
(
TaskService
.
OutputChannelId
).
show
();
return
this
.
outputService
.
getChannel
(
TaskService
.
OutputChannelId
).
show
();
}
}
...
...
@@ -506,7 +506,7 @@ class TaskService extends EventEmitter implements ITaskService {
this
.
taskSystemListeners
=
[];
this
.
clearTaskSystemPromise
=
false
;
this
.
outputChannel
=
this
.
outputService
.
get
Output
Channel
(
TaskService
.
OutputChannelId
);
this
.
outputChannel
=
this
.
outputService
.
getChannel
(
TaskService
.
OutputChannelId
);
this
.
configurationService
.
addListener
(
ConfigurationServiceEventTypes
.
UPDATED
,
()
=>
{
this
.
emit
(
TaskServiceEvents
.
ConfigChanged
);
if
(
this
.
_taskSystem
&&
this
.
_taskSystem
.
isActiveSync
())
{
...
...
src/vs/workbench/parts/tasks/node/processRunnerSystem.ts
浏览文件 @
65e0142d
...
...
@@ -39,7 +39,6 @@ export class ProcessRunnerSystem extends EventEmitter implements ITaskSystem {
private
markerService
:
IMarkerService
;
private
modelService
:
IModelService
;
private
outputService
:
IOutputService
;
private
outputChannelId
:
string
;
private
telemetryService
:
ITelemetryService
;
private
validationStatus
:
ValidationStatus
;
...
...
@@ -52,13 +51,12 @@ export class ProcessRunnerSystem extends EventEmitter implements ITaskSystem {
private
childProcess
:
LineProcess
;
private
activeTaskIdentifier
:
string
;
constructor
(
fileConfig
:
FileConfig
.
ExternalTaskRunnerConfiguration
,
variables
:
SystemVariables
,
markerService
:
IMarkerService
,
modelService
:
IModelService
,
telemetryService
:
ITelemetryService
,
outputService
:
IOutputService
,
outputChannel
:
string
,
clearOutput
:
boolean
=
true
)
{
constructor
(
fileConfig
:
FileConfig
.
ExternalTaskRunnerConfiguration
,
variables
:
SystemVariables
,
markerService
:
IMarkerService
,
modelService
:
IModelService
,
telemetryService
:
ITelemetryService
,
outputService
:
IOutputService
,
outputChannel
Id
:
string
,
clearOutput
:
boolean
=
true
)
{
super
();
this
.
fileConfig
=
fileConfig
;
this
.
variables
=
variables
;
this
.
markerService
=
markerService
;
this
.
modelService
=
modelService
;
this
.
outputChannelId
=
outputChannel
;
this
.
outputService
=
outputService
;
this
.
telemetryService
=
telemetryService
;
...
...
@@ -66,6 +64,7 @@ export class ProcessRunnerSystem extends EventEmitter implements ITaskSystem {
this
.
defaultTestTaskIdentifier
=
null
;
this
.
childProcess
=
null
;
this
.
activeTaskIdentifier
=
null
;
this
.
outputChannel
=
this
.
outputService
.
getChannel
(
outputChannelId
);
if
(
clearOutput
)
{
this
.
clearOutput
();
...
...
@@ -76,7 +75,6 @@ export class ProcessRunnerSystem extends EventEmitter implements ITaskSystem {
this
.
configuration
=
parseResult
.
configuration
;
this
.
defaultBuildTaskIdentifier
=
parseResult
.
defaultBuildTaskIdentifier
;
this
.
defaultTestTaskIdentifier
=
parseResult
.
defaultTestTaskIdentifier
;
this
.
outputChannel
=
this
.
outputService
.
getOutputChannel
(
this
.
outputChannelId
);
if
(
!
this
.
validationStatus
.
isOK
())
{
this
.
showOutput
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录