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

Unified Diff: pkg/analysis_server/lib/src/domain_completion.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 | « no previous file | pkg/analysis_server/lib/src/edit/edit_domain.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 4c2221a6ff016e2beb481e7d1a4199d4e0b8b5e3..aefb37dabd758b42d4635e3f4996045bd1a0df7f 100644
--- a/pkg/analysis_server/lib/src/domain_completion.dart
+++ b/pkg/analysis_server/lib/src/domain_completion.dart
@@ -104,7 +104,12 @@ class CompletionDomainHandler implements RequestHandler {
Response handleRequest(Request request) {
if (server.options.enableNewAnalysisDriver) {
// TODO(scheglov) implement for the new analysis driver
- return new CompletionGetSuggestionsResult('0').toResponse(request.id);
+ String completionId = (_nextCompletionId++).toString();
+ new Future(() {
+ sendCompletionNotification(completionId, 0, 0, []);
+ });
+ return new CompletionGetSuggestionsResult(completionId)
+ .toResponse(request.id);
}
if (server.searchEngine == null) {
return new Response.noIndexGenerated(request);
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/edit/edit_domain.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698