| Index: pkg/analysis_server/lib/src/services/refactoring/move_file.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/refactoring/move_file.dart b/pkg/analysis_server/lib/src/services/refactoring/move_file.dart
|
| index 3f24fa942f121814a79c1b8909c53ede0241756b..654fc4ff50dde035ca32c7380b36fed5c5aef41f 100644
|
| --- a/pkg/analysis_server/lib/src/services/refactoring/move_file.dart
|
| +++ b/pkg/analysis_server/lib/src/services/refactoring/move_file.dart
|
| @@ -92,7 +92,8 @@ class MoveFileRefactoringImpl extends RefactoringImpl
|
| String refDir = pathContext.dirname(reference.file);
|
| // try to keep package: URI
|
| if (_isPackageReference(reference)) {
|
| - Source newSource = new NonExistingSource(newFile, UriKind.FILE_URI);
|
| + Source newSource = new NonExistingSource(
|
| + newFile, pathos.toUri(newFile), UriKind.FILE_URI);
|
| Uri restoredUri = context.sourceFactory.restoreUri(newSource);
|
| if (restoredUri != null) {
|
| return restoredUri.toString();
|
|
|