dart-sdk/pkg/analysis_server/test/lsp
Brian Wilkerson 9db372e6f4 Make Location.endLine and Location.endColumn optional fields in the protocol
In https://dart-review.googlesource.com/c/sdk/+/191862 we added two new
required fields to `Location`. Unfortunately this was a breaking change
because plugins using an older version of the `analyzer_plugin` produce
location objects without those fields, leading to deserialization failures.

This CL makes those fields optional in order to fix the deserialization
issue.

Unfortunately, the `analyzer_plugin` package was published after the
required fields were added. Making them optional is a breaking change
because the constructor parameters go from being positional to being
named parameters.

We also neglected to update the version number of the protocol as part
of the previous CL. Technically this is also a breaking change for clients
of the analysis server, but given that they had no way to test to see
whether these fields existed they would need to have been written as if
the fields were optional in order to reference them at all, so I think
that from a practical standpoint it isn't a breaking change. That does,
however, raise the question of whether we should increment the version
numbers as part of this CL.

Change-Id: I35fc1f8e950669a3d8dd33cee6b81890261b5c47
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206942
Reviewed-by: Danny Tuppeny <danny@tuppeny.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-07-15 17:35:55 +00:00
..
analyzer_status_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
cancel_request_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
change_workspace_folders_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
closing_labels_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
code_actions_abstract.dart [analyzer] Map all LSP integer/uintegers on to Dart's int type 2021-05-04 15:37:41 +00:00
code_actions_assists_test.dart [analyzer] Ensure the error message for LSP CodeActions requests with invalid positions is clear 2021-05-04 16:55:11 +00:00
code_actions_fixes_test.dart [analysis_server] Add quick-fixes to ignore lints/hints for line/file 2021-06-17 15:37:11 +00:00
code_actions_refactor_test.dart [analysis_server] Swap from dynamic to Object? in LSP generated code 2021-07-07 17:14:34 +00:00
code_actions_source_test.dart [analysis_server] Add source.fixAll source command for LSP 2021-07-01 17:56:47 +00:00
completion.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
completion_dart_test.dart [analysis_server] Swap from dynamic to Object? in LSP generated code 2021-07-07 17:14:34 +00:00
completion_yaml_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
configuration_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
definition_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
diagnostic_test.dart Make Location.endLine and Location.endColumn optional fields in the protocol 2021-07-15 17:35:55 +00:00
document_changes_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
document_highlights_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
document_symbols_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
file_modification_test.dart [analyzer] Migrate remaining LSP tests to null-safe 2021-04-21 16:41:50 +00:00
flutter_outline_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
folding_test.dart [analyzer] Support folding enum declarations 2021-04-27 15:45:38 +00:00
format_test.dart Cleanup invalid declarations of main, part 1 2021-06-28 18:13:24 +00:00
hover_test.dart [analyzer] Format signatures in LSP hovers over multiple lines 2021-06-09 19:02:12 +00:00
implementation_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
initialization_test.dart [analysis_server] Swap from dynamic to Object? in LSP generated code 2021-07-07 17:14:34 +00:00
mapping_test.dart [analyzer] Fix a bug with completion ranking for items with 0 relevance in LSP 2021-04-24 18:13:32 +00:00
outline_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
priority_files_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
pub_package_service_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
reanalyze_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
references_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
rename_test.dart [analysis_server] Swap from dynamic to Object? in LSP generated code 2021-07-07 17:14:34 +00:00
selection_range_test.dart [analyzer] Add support for LSP textDocument/selectionRanges 2021-05-19 16:34:47 +00:00
semantic_tokens_test.dart [analysis_server] Improve coloring of invalid/unresolved methods in LSP semantic tokens 2021-06-17 20:15:21 +00:00
server_abstract.dart [analysis_server] Swap from dynamic to Object? in LSP generated code 2021-07-07 17:14:34 +00:00
server_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
signature_help_test.dart [analysis_server] Support LSP SignatureHelp for type argument lists 2021-06-22 14:56:44 +00:00
super_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
test_all.dart [analyzer] Add support for LSP textDocument/selectionRanges 2021-05-19 16:34:47 +00:00
will_rename_files_test.dart [analyzer] Migrate more LSP tests to null-safety 2021-04-20 21:15:28 +00:00
workspace_symbols_test.dart [analyzer] Map all LSP integer/uintegers on to Dart's int type 2021-05-04 15:37:41 +00:00