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

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

Issue 239213004: Add a message for analysis server to indicate a successful connection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/lib/src/socket_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1c9004ff8f00488234924bf913fead6c72cc9884..5a09a3639ef2232cf1a018df308133e821498417 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -32,6 +32,11 @@ class AnalysisServer {
static const String SOURCE_PARAM = 'source';
/**
+ * The name of the connected result value.
+ */
+ static const String CONNECTED_RESULT = 'connected';
+
+ /**
* The channel from which requests are received and to which responses should
* be sent.
*/
@@ -66,6 +71,9 @@ class AnalysisServer {
AnalysisServer(this.channel) {
AnalysisEngine.instance.logger = new AnalysisLogger();
running = true;
+ Response response = new Response('');
+ response.setResult(CONNECTED_RESULT, true);
+ channel.sendResponse(response);
channel.listen(handleRequest, onDone: done, onError: error);
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/socket_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698