// The id in the JSON could be either an int or String (LSP is JSON-RPC 2
// which allows either).I'm not sure you how you feel about using this `Either2` class from the LSP files, but I think it's either that or `Object?` since we need to support both, and we can't just `toString()` the int, because `1` and `"1"` are both valid and distinct IDs.
bool _shouldSkip(Message message) =>The tests all seem to pass locally, but I don't know if they cover the log player or if I should be testing it manually. If the latter, are there any notes on how to capture and replay one to verify it?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +1 |
Sorry for the delay. I thought I had reviewed it earlier but is appear I didn't.
// The id in the JSON could be either an int or String (LSP is JSON-RPC 2
// which allows either).I'm not sure you how you feel about using this `Either2` class from the LSP files, but I think it's either that or `Object?` since we need to support both, and we can't just `toString()` the int, because `1` and `"1"` are both valid and distinct IDs.
I'm fine with using it.
bool _shouldSkip(Message message) =>The tests all seem to pass locally, but I don't know if they cover the log player or if I should be testing it manually. If the latter, are there any notes on how to capture and replay one to verify it?
Jake is going to land a `.md` file to explain how to use the tool.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The issue this will fix came up at https://github.com/dart-lang/sdk/issues/62442
I'm not yet sure how it was triggered - I expected the bug would only affect LSP clients using String IDs, and that would not include VS Code (I haven't seen it myself, despite being on an SDK that includes the original change).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Sigh. Looks like it needs to be rebased.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Sigh. Looks like it needs to be rebased.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[analysis_server] Support String IDs in log replay + run some LSP integration tests with string IDs
My previous CL made some LSP tests run with String IDs instead of ints, but those tests don't appear to go through the session logger so did not fail with the casts here.
This change adds a base integration test that also uses string IDs, which did fail on the cast, so I've updated the session logger to use `Either2<int, String>` for IDs instead.
Fixes https://github.com/dart-lang/sdk/issues/62442
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |