Fix #163
This commit is contained in:
parent
f892a7138d
commit
0914185b62
|
@ -402,7 +402,7 @@ var wide = {
|
||||||
|
|
||||||
switch (data.cmd) {
|
switch (data.cmd) {
|
||||||
case 'run': // 正在运行
|
case 'run': // 正在运行
|
||||||
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + data.output);
|
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '<pre>' + data.output + '</pre>');
|
||||||
wide.curProcessId = data.pid;
|
wide.curProcessId = data.pid;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -417,17 +417,17 @@ var wide = {
|
||||||
case 'start-test':
|
case 'start-test':
|
||||||
case 'start-install':
|
case 'start-install':
|
||||||
case 'start-get':
|
case 'start-get':
|
||||||
bottomGroup.fillOutput(data.output);
|
bottomGroup.fillOutput('<pre>' + data.output + '</pre>');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'go test':
|
case 'go test':
|
||||||
case 'go install':
|
case 'go install':
|
||||||
case 'go get':
|
case 'go get':
|
||||||
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + data.output);
|
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '<pre>' + data.output + '</pre>');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'build':
|
case 'build':
|
||||||
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + data.output);
|
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '<pre>' + data.output + '</pre>');
|
||||||
|
|
||||||
if (data.lints) { // 说明编译有错误输出
|
if (data.lints) { // 说明编译有错误输出
|
||||||
for (var i = 0; i < data.lints.length; i++) {
|
for (var i = 0; i < data.lints.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue