Commit 2e1a89cf authored by John McCutchan's avatar John McCutchan Committed by GitHub

Merge pull request #4987 from johnmccutchan/hot_mode_tweaks

Tweaks to --hot mode
parents 36eb4a06 2f5a0dcd
...@@ -80,14 +80,14 @@ class ServiceProtocolDevFSOperations implements DevFSOperations { ...@@ -80,14 +80,14 @@ class ServiceProtocolDevFSOperations implements DevFSOperations {
} }
String fileContents = BASE64.encode(bytes); String fileContents = BASE64.encode(bytes);
try { try {
return await serviceProtocol.sendRequest('_writeDevFSFile', return await serviceProtocol.sendRequest('_writeDevFSFile',
<String, dynamic> { <String, dynamic> {
'fsName': fsName, 'fsName': fsName,
'path': entry.devicePath, 'path': entry.devicePath,
'fileContents': fileContents 'fileContents': fileContents
}); });
} catch (e) { } catch (e) {
print('failed on ${entry.devicePath} $e'); printTrace('DevFS: Failed to write ${entry.devicePath}: $e');
} }
} }
......
...@@ -345,9 +345,9 @@ class RunAndStayResident { ...@@ -345,9 +345,9 @@ class RunAndStayResident {
}); });
} }
printStatus('DevFS: Updating files on device...'); Status devFSStatus = logger.startProgress('Updating files on device...');
await _devFS.update(); await _devFS.update();
printStatus('DevFS: Finished updating files on device...'); devFSStatus.stop(showElapsedTime: true);
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment