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

Side by Side Diff: pkg/analysis_server/lib/src/domain_completion.dart

Issue 1432423004: Send any logError() information to the IDE. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library domain.completion; 5 library domain.completion;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 try { 135 try {
136 String requestName = request.method; 136 String requestName = request.method;
137 if (requestName == COMPLETION_GET_SUGGESTIONS) { 137 if (requestName == COMPLETION_GET_SUGGESTIONS) {
138 return processRequest(request); 138 return processRequest(request);
139 } 139 }
140 } on RequestFailure catch (exception) { 140 } on RequestFailure catch (exception) {
141 return exception.response; 141 return exception.response;
142 } 142 }
143 return null; 143 return null;
144 }, onError: (exception, stackTrace) { 144 }, onError: (exception, stackTrace) {
145 server.sendServerErrorNotification(exception, stackTrace); 145 server.sendServerErrorNotification(null, exception, stackTrace);
146 }); 146 });
147 } 147 }
148 148
149 /** 149 /**
150 * If the set the priority files has changed, then pre-cache completion 150 * If the set the priority files has changed, then pre-cache completion
151 * information related to the first priority file. 151 * information related to the first priority file.
152 */ 152 */
153 void priorityChanged(PriorityChangeEvent event) { 153 void priorityChanged(PriorityChangeEvent event) {
154 Source source = event.firstSource; 154 Source source = event.firstSource;
155 CompletionPerformance performance = new CompletionPerformance(); 155 CompletionPerformance performance = new CompletionPerformance();
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 if (_sourcesChangedSubscription != null) { 281 if (_sourcesChangedSubscription != null) {
282 _sourcesChangedSubscription.cancel(); 282 _sourcesChangedSubscription.cancel();
283 _sourcesChangedSubscription = null; 283 _sourcesChangedSubscription = null;
284 } 284 }
285 if (_manager != null) { 285 if (_manager != null) {
286 _manager.dispose(); 286 _manager.dispose();
287 _manager = null; 287 _manager = null;
288 } 288 }
289 } 289 }
290 } 290 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698