The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
BSD 3-Clause "New" or "Revised" License
10.31k
stars
1.59k
forks
source link
[analyzer] doesn't show import for ../../models/bar.dart #37537
Open
lukepighetti opened 5 years ago
Dart analyzer doesn't appear to be able to walk down to a parent directory and then into a child directory.
eg
if you try to import
Bar()
from insidefoo.dart
, the only option given by the analyzer (via VSCode auto complete) is to import the packageimport 'package:myapp/models/bar.dart';
This import then gets mixed in with all the other package imports instead of being next to the other relative imports
Ideally it would be able to do the following
import '../../models/bar.dart'