diff --git a/addons/isl-server/src/OperationQueue.ts b/addons/isl-server/src/OperationQueue.ts index e4a68a58929b0..4e5e52c532aa5 100644 --- a/addons/isl-server/src/OperationQueue.ts +++ b/addons/isl-server/src/OperationQueue.ts @@ -80,6 +80,9 @@ export class OperationQueue { case 'inlineProgress': onProgress({id: operation.id, kind: 'inlineProgress', hash: args[1], message: args[2]}); break; + case 'warning': + onProgress({id: operation.id, kind: 'warning', warning: args[1]}); + break; case 'stderr': onProgress({id: operation.id, kind: 'stderr', message: args[1]}); break; diff --git a/addons/isl-server/src/Repository.ts b/addons/isl-server/src/Repository.ts index 5915760be28a0..c3105f558d6e0 100644 --- a/addons/isl-server/src/Repository.ts +++ b/addons/isl-server/src/Repository.ts @@ -677,23 +677,25 @@ export class Repository { try { // eslint-disable-next-line no-await-in-loop const message = await child.getOneMessage(); - if ( - message === null || - typeof message !== 'object' || - !('progress_bar_update' in message) - ) { + if (message === null || typeof message !== 'object') { break; } - const bars = message.progress_bar_update as IpcProgressBar[]; - const blen = bars.length; - if (blen > 0) { - const msg = bars[blen - 1]; - onProgress('progress', { - message: msg.topic, - progress: msg.position, - progressTotal: msg.total, - unit: msg.unit, - }); + if ('progress_bar_update' in message) { + const bars = message.progress_bar_update as IpcProgressBar[]; + const blen = bars.length; + if (blen > 0) { + const msg = bars[blen - 1]; + onProgress('progress', { + message: msg.topic, + progress: msg.position, + progressTotal: msg.total, + unit: msg.unit, + }); + } + } else if ('warning' in message) { + onProgress('warning', message.warning as string); + } else { + break; } } catch (err) { break; diff --git a/addons/isl/src/CommandHistoryAndProgress.tsx b/addons/isl/src/CommandHistoryAndProgress.tsx index 87cd1ed241f45..968bdfa68b531 100644 --- a/addons/isl/src/CommandHistoryAndProgress.tsx +++ b/addons/isl/src/CommandHistoryAndProgress.tsx @@ -268,6 +268,14 @@ export function CommandHistoryAndProgress() {