Open
Description
Reproduction steps:
Example project: https://github.com/JFixby/DartImportsExample
class A located in the lib/folderA/class_a_file.dart
content:
class A {
static String fieldF = "";
}
class C located in the lib/class_c_depends_on_a.dart
depends on the A
content:
import 'package:project_a/folderA/class_a_file.dart';
class C {
C() {
A.fieldF;
}
}
What was done
rename the folder lib/folderA/
to any name like lib/folderX/
What is expected
refactoring updates class C with the new path
the import should become import 'package:project_a/folderX/class_a_file.dart';
What is actually happening
no update, class see is pointing to the missing old import
Refactoring preview shows no dependent classes:
renaming leads to a compile error:
Setup
IDEA version: community 2017.2
Dart plugin: 172.3317.48