Index: pkg/analysis_server/lib/src/analysis_server.dart |
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart |
index 57938216bc0fb33901fc3c77ed4172c23dc8f703..261a13d58c6f46dccfca85ebaa56ab16674a6c59 100644 |
--- a/pkg/analysis_server/lib/src/analysis_server.dart |
+++ b/pkg/analysis_server/lib/src/analysis_server.dart |
@@ -560,14 +560,16 @@ class AnalysisServer { |
* analyzed in one of the analysis drivers to which the file was added, |
* otherwise in the first driver, otherwise `null` is returned. |
*/ |
- Future<nd.AnalysisResult> getAnalysisResult(String path) async { |
+ Future<nd.AnalysisResult> getAnalysisResult(String path, |
+ {bool sendCachedToStream: false}) async { |
if (!AnalysisEngine.isDartFileName(path)) { |
return null; |
} |
try { |
nd.AnalysisDriver driver = getAnalysisDriver(path); |
- return await driver?.getResult(path); |
+ return await driver?.getResult(path, |
+ sendCachedToStream: sendCachedToStream); |
} catch (e) { |
// Ignore the exception. |
// We don't want to log the same exception again and again. |
@@ -871,7 +873,7 @@ class AnalysisServer { |
// the fully resolved unit, and processed with sending analysis |
// notifications as it happens after content changes. |
if (AnalysisEngine.isDartFileName(file)) { |
- getAnalysisResult(file); |
+ getAnalysisResult(file, sendCachedToStream: true); |
} |
} |
} |