Pass uri instead of filepaths when hot-reloading. (#21201)
* Pass uri instead of filepaths when hot-reloading. Bug: https://github.com/flutter/flutter/issues/21168 * Remove imports. Enable another test * Restore skipping of test on mac
This commit is contained in:
committed by
GitHub
parent
7598050fff
commit
e4b7e87bdd
@@ -1149,13 +1149,11 @@ class Isolate extends ServiceObjectOwner {
|
||||
final Map<String, dynamic> arguments = <String, dynamic>{
|
||||
'pause': pause
|
||||
};
|
||||
// TODO(goderbauer): Transfer Uri (instead of file path) when remote end supports it.
|
||||
// Note: Despite the name, `rootLibUri` and `packagesUri` expect file paths.
|
||||
if (rootLibUri != null) {
|
||||
arguments['rootLibUri'] = rootLibUri.toFilePath(windows: false);
|
||||
arguments['rootLibUri'] = rootLibUri.toString();
|
||||
}
|
||||
if (packagesUri != null) {
|
||||
arguments['packagesUri'] = packagesUri.toFilePath(windows: false);
|
||||
arguments['packagesUri'] = packagesUri.toString();
|
||||
}
|
||||
final Map<String, dynamic> response = await invokeRpcRaw('_reloadSources', params: arguments);
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user