Merge pull request #4987 from johnmccutchan/hot_mode_tweaks
Tweaks to --hot mode
This commit is contained in:
commit
2e1a89cf45
@ -80,14 +80,14 @@ class ServiceProtocolDevFSOperations implements DevFSOperations {
|
||||
}
|
||||
String fileContents = BASE64.encode(bytes);
|
||||
try {
|
||||
return await serviceProtocol.sendRequest('_writeDevFSFile',
|
||||
<String, dynamic> {
|
||||
'fsName': fsName,
|
||||
'path': entry.devicePath,
|
||||
'fileContents': fileContents
|
||||
});
|
||||
return await serviceProtocol.sendRequest('_writeDevFSFile',
|
||||
<String, dynamic> {
|
||||
'fsName': fsName,
|
||||
'path': entry.devicePath,
|
||||
'fileContents': fileContents
|
||||
});
|
||||
} catch (e) {
|
||||
print('failed on ${entry.devicePath} $e');
|
||||
printTrace('DevFS: Failed to write ${entry.devicePath}: $e');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -345,9 +345,9 @@ class RunAndStayResident {
|
||||
});
|
||||
}
|
||||
|
||||
printStatus('DevFS: Updating files on device...');
|
||||
Status devFSStatus = logger.startProgress('Updating files on device...');
|
||||
await _devFS.update();
|
||||
printStatus('DevFS: Finished updating files on device...');
|
||||
devFSStatus.stop(showElapsedTime: true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user