dart-sdk/pkg/analyzer_plugin/lib
Danny Tuppeny 4d9c40860f [analysis_server] Add support for LSP Document Links for example/api links
This extracts the code that finds "examples/api" paths in code from the navigation code so that it can be re-used by LSP's DocumentLink request.

This allows the links to be more visible in the editor (they are underlined and clearly clickable like hyperlinks, whereas definition required you to hover and hold Ctrl before you'd seen an underline in VS Code).

Example: https://github.com/Dart-Code/Dart-Code/assets/1078012/be9db467-dbc9-4206-9dd5-f8ca72d95596

There may be an argument for making this more general (so that links other than example/api could be detected) but for now the goal was to make these existing links more obvious.

Fixes https://github.com/Dart-Code/Dart-Code/issues/4186

Change-Id: Id00425175b24394e565e13406ea4bac5691d2c72
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/333082
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2023-11-02 15:51:49 +00:00
..
channel Migrate analyzer_plugin package to null safety 2021-03-30 00:29:37 +00:00
plugin Remove domain 'kythe' from DAS. 2022-10-21 17:03:29 +00:00
protocol Extension type. Tests for type hierarchy. 2023-08-30 21:18:25 +00:00
src Complete in the representation field 2023-10-19 21:08:32 +00:00
utilities [analysis_server] Add support for LSP Document Links for example/api links 2023-11-02 15:51:49 +00:00
starter.dart Enable slash_for_doc_comments in analyzer_plugin 2020-01-18 18:17:31 +00:00