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

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

Issue 2876793006: improve code completion abort request tests (Closed)
Patch Set: Created 3 years, 7 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/domain_completion_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 8491eb2cf2118ce5d235b53c9897edc30cd93897..aa1c1c06a4eed69df31390feb0f016bef7ac0e75 100644
--- a/pkg/analysis_server/lib/src/domain_completion.dart
+++ b/pkg/analysis_server/lib/src/domain_completion.dart
@@ -78,15 +78,13 @@ class CompletionDomainHandler extends AbstractRequestHandler {
//
Map<PluginInfo, Future<plugin.Response>> pluginFutures;
plugin.CompletionGetSuggestionsParams requestParams;
- if (server.options.enableNewAnalysisDriver) {
- String file = params.file;
- int offset = params.offset;
- AnalysisDriver driver = server.getAnalysisDriver(file);
- if (driver != null) {
- requestParams = new plugin.CompletionGetSuggestionsParams(file, offset);
- pluginFutures = server.pluginManager
- .broadcastRequest(requestParams, contextRoot: driver.contextRoot);
- }
+ String file = params.file;
+ int offset = params.offset;
+ AnalysisDriver driver = server.getAnalysisDriver(file);
+ if (driver != null) {
+ requestParams = new plugin.CompletionGetSuggestionsParams(file, offset);
+ pluginFutures = server.pluginManager
+ .broadcastRequest(requestParams, contextRoot: driver.contextRoot);
}
//
// Compute completions generated by server.
« no previous file with comments | « no previous file | pkg/analysis_server/test/domain_completion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698