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

Issue 243753002: Analysis server context ID is now specified by the client. (Closed)

Created:
6 years, 8 months ago by Paul Berry
Modified:
6 years, 8 months ago
Reviewers:
jwren, Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Analysis server context ID is now specified by the client. This allows the client to start sending commands that use the context immediately, without having to wait for a response to find out the context ID. If the client tries to create two contexts with the same ID, that is an error. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=35185

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -24 lines) Patch
M pkg/analysis_server/lib/src/domain_server.dart View 3 chunks +3 lines, -11 lines 2 comments Download
M pkg/analysis_server/lib/src/protocol.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/analysis_server_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/analysis_server/test/domain_context_test.dart View 2 chunks +5 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/domain_server_test.dart View 2 chunks +26 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Paul Berry
6 years, 8 months ago (2014-04-18 20:55:11 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/243753002/diff/1/pkg/analysis_server/lib/src/domain_server.dart File pkg/analysis_server/lib/src/domain_server.dart (right): https://codereview.chromium.org/243753002/diff/1/pkg/analysis_server/lib/src/domain_server.dart#newcode98 pkg/analysis_server/lib/src/domain_server.dart:98: String contextId = request.getParameter(CONTEXT_ID_PARAM); I think this should ...
6 years, 8 months ago (2014-04-18 21:58:24 UTC) #2
Paul Berry
Committed patchset #1 manually as r35185 (presubmit successful).
6 years, 8 months ago (2014-04-18 22:20:57 UTC) #3
Paul Berry
6 years, 8 months ago (2014-04-18 22:21:18 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/243753002/diff/1/pkg/analysis_server/lib/src/...
File pkg/analysis_server/lib/src/domain_server.dart (right):

https://codereview.chromium.org/243753002/diff/1/pkg/analysis_server/lib/src/...
pkg/analysis_server/lib/src/domain_server.dart:98: String contextId =
request.getParameter(CONTEXT_ID_PARAM);
On 2014/04/18 21:58:25, Brian Wilkerson wrote:
> I think this should use getRequiredParameter.

Done.

> 
> We should also probably create and use a toString method (similar to toInt and
> toBool) that will generate an error if the value of the parameter isn't a
> String.

Ok, I'll do that as a follow-up CL.

Powered by Google App Engine
This is Rietveld 408576698