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

Unified Diff: pkg/analysis_server/lib/src/domain_completion.dart

Issue 2618243002: Fix the rest of the completion tests with the new analysis driver. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/completion/get_suggestions_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domain_completion.dart
diff --git a/pkg/analysis_server/lib/src/domain_completion.dart b/pkg/analysis_server/lib/src/domain_completion.dart
index 6bad4431a2ab122d8773b9cdd4259df474e243cb..436254e5a833179dd48a1e211949607c8f8af250 100644
--- a/pkg/analysis_server/lib/src/domain_completion.dart
+++ b/pkg/analysis_server/lib/src/domain_completion.dart
@@ -138,7 +138,7 @@ class CompletionDomainHandler implements RequestHandler {
if (server.options.enableNewAnalysisDriver) {
result = await server.getAnalysisResult(params.file);
- if (result == null) {
+ if (result == null || !result.exists) {
server.sendResponse(new Response.unknownSource(request));
return;
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/completion/get_suggestions_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698