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

Unified Diff: pkg/analysis_server/lib/src/edit/edit_domain.dart

Issue 2467153002: Fixes for formatting and complete completion stub. (Closed)
Patch Set: Created 4 years, 1 month 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 | « pkg/analysis_server/lib/src/domain_completion.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/edit/edit_domain.dart
diff --git a/pkg/analysis_server/lib/src/edit/edit_domain.dart b/pkg/analysis_server/lib/src/edit/edit_domain.dart
index 7e1a9883219b4ab1d2d70456620de87957e4116f..5906cd10abbc333c7cd2acdc8d97efd419c25fc7 100644
--- a/pkg/analysis_server/lib/src/edit/edit_domain.dart
+++ b/pkg/analysis_server/lib/src/edit/edit_domain.dart
@@ -72,7 +72,11 @@ class EditDomainHandler implements RequestHandler {
String unformattedSource;
try {
Source source = server.resourceProvider.getFile(file).createSource();
- unformattedSource = server.overlayState.getContents(source);
+ if (server.options.enableNewAnalysisDriver) {
+ unformattedSource = server.fileContentOverlay[file];
+ } else {
+ unformattedSource = server.overlayState.getContents(source);
+ }
unformattedSource ??= source.contents.data;
} catch (e) {
return new Response.formatInvalidFile(request);
« no previous file with comments | « pkg/analysis_server/lib/src/domain_completion.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698