"See code in" example links incorrectly group multiple examples, don't linkify entire path #4181
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
relies on sdk changes
Something that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
When navigating to an example in the Flutter repo source code in the form of:
If there are multiple examples in the comment then it says that there are two possible "definitions" for the destination, when the analyzer should be supplying the full path to the destination under the pointer, and so VSCode should be linkifying the entire path, not just the path element.
If there is only one example in the dartdoc block, then it more correctly links to just the link under the pointer:
However, it seems to me that VSCode should be rendering the links in another color (the "link" color that is used by symbol refs in brackets) so that users even know that they can click on them. It's not very discoverable to have to ctrl-click on the path in a comment, since it's not expected that it is a symbol.
It also seems like in that screenshot that the tooltip/hover text is showing an empty tip, which also shouldn't happen.
To Reproduce
Steps to reproduce the behavior:
flutter/packages/flutter/lib/src/widgets/basic.dart
in the Flutter repo.ClipRRect
.Expected behavior
Please complete the following information:
The text was updated successfully, but these errors were encountered: