mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 10:18:13 +00:00
4d9c40860f
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> |
||
---|---|---|
.. | ||
channel | ||
plugin | ||
protocol | ||
src | ||
utilities | ||
starter.dart |