Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/move_file.dart

Issue 1135073004: Fix for 'Create part' Quick Fix. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/util.dart ('k') | pkg/analysis_server/test/services/correction/fix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698