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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java

Issue 337383005: PackageMapUriResolver for Dart server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java
index c52ddf04b75fc3061a3f9acb75bab6496ba07e04..b4989ecae3ea592234b24e6ebac79599ad9ef9c2 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/internal/remote/ByteResponseStream.java
@@ -48,16 +48,18 @@ public class ByteResponseStream implements ResponseStream {
@Override
public JsonObject take() throws Exception {
- String line = reader.readLine();
- if (line == null) {
- return null;
- }
+ while (true) {
Brian Wilkerson 2014/06/17 21:38:23 Given that the while is only useful for debugging,
scheglov 2014/06/17 22:50:33 Rolled back.
+ String line = reader.readLine();
+ if (line == null) {
+ return null;
+ }
// if (line.contains("\"event\":\"server.status\"")) {
-// System.out.println(System.currentTimeMillis() + " <= " + line);
+// System.out.println(System.currentTimeMillis() + " <= " + line);
// }
// if (!line.startsWith("{")) {
// continue;
// }
- return (JsonObject) new JsonParser().parse(line);
+ return (JsonObject) new JsonParser().parse(line);
+ }
}
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/analysis_server.dart » ('j') | pkg/analysis_server/lib/src/analysis_server.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698