Index: pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart |
index ebf87fed932bd46cb443a68392ece7c171fcb05e..13282c2fdb2eef21b13aeb648d1dd02fdafe0d06 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/dart/uri_contributor.dart |
@@ -121,6 +121,9 @@ class _UriSuggestionBuilder extends SimpleAstVisitor { |
return; |
} |
} |
+ if (dirPath.endsWith('\\.')) { |
+ dirPath = dirPath.substring(0, dirPath.length - 1); |
+ } |
Resource dir = resProvider.getResource(dirPath); |
if (dir is Folder) { |