0b170c759e
VS Code uses the definition range to show a preview of the hovered item (when holding `ctrl`). We usually expand a variable declaration to the parent list so that this preview includes "var", "final" and/or any type. However, if the list contains multiple variables, this resulted in us showing other variables in the preview too which is confusing/misleading. This change keeps the original behaviour for VariableDeclarationLists with only a single variable, and otherwise keeps the specific variables range. Fixes https://github.com/Dart-Code/Dart-Code/issues/4968 Change-Id: I9e3cfd672f51040b60f9791ba89a937d5733c628 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363280 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
analysis_server
A long-running process that provides analysis results to other tools.
The analysis server is designed to provide on-going analysis of one or more code bases as those code bases are changing.
Using the server
The analysis server is not intended to be used stand-alone, and therefore does not have a human-friendly user interface.
Clients (typically tools, such as an editor) are expected to run the analysis
server in a separate process and communicate with it using a JSON protocol. The
original protocol is specified in the file analysis_server/doc/api.html
and Language Server Protocol support is documented in
tool/lsp_spec/README.md.
Features and bugs
Please file feature requests and bugs at the issue tracker.