Index: pkg/analyzer_plugin/lib/plugin/plugin.dart |
diff --git a/pkg/analyzer_plugin/lib/plugin/plugin.dart b/pkg/analyzer_plugin/lib/plugin/plugin.dart |
index f24f6b811c71626d181b02464995658c5f77d837..263ca2ddf91d98ddf8aec2c4299dc206a550a88e 100644 |
--- a/pkg/analyzer_plugin/lib/plugin/plugin.dart |
+++ b/pkg/analyzer_plugin/lib/plugin/plugin.dart |
@@ -328,7 +328,7 @@ abstract class ServerPlugin { |
*/ |
Response _getResponse(Request request) { |
ResponseResult result = null; |
- switch (request.id) { |
+ switch (request.method) { |
case ANALYSIS_REQUEST_HANDLE_WATCH_EVENTS: |
result = handleAnalysisHandleWatchEvents(request.params); |
break; |