Use a different message on the first reload. (#9418)

The first hot reload does a bunch of work that we used to hide behind the
loader screen. This PR changes the messsage printed to the user on the first
reload from:

'Performing hot reload...'

to:

'Initializing hot reload...'

Subsequent reloads say 'Performing hot reload...'
This commit is contained in:
John McCutchan
2017-04-17 11:03:43 -07:00
committed by GitHub
parent d05d36101a
commit 5e73133797

View File

@@ -373,7 +373,9 @@ class HotRunner extends ResidentRunner {
rethrow;
}
} else {
final Status status = logger.startProgress('Performing hot reload...', progressId: 'hot.reload');
final bool reloadOnTopOfSnapshot = _runningFromSnapshot;
final String progressPrefix = reloadOnTopOfSnapshot ? 'Initializing' : 'Performing';
final Status status = logger.startProgress('$progressPrefix hot reload...', progressId: 'hot.reload');
try {
final Stopwatch timer = new Stopwatch()..start();
final OperationResult result = await _reloadSources(pause: pauseAfterRestart);