Patterns and records are missing some IDE features like autocomplete, highlight usages under caret, ctrl click go to, and quick docs on hover #55740
Labels
analyzer-completion
Issues with the analysis server's code completion feature
analyzer-language-patterns
Issues with analyzer's support for the patterns language feature
analyzer-ux
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Most IDE features work for most interactions with patterns and/or records, but there are a few cases that seem to be missing support.
The following examples were done with the following environment:
Autocomplete
Place the caret after
ba
and before the;
and trigger autocomplete (ctrl+space) - the list of suggestions should includebar
, but it does not.Show type info in quick doc
Place the caret inside the left-hand-side
bar
and trigger quick docs (ctrl+q) - the quick docs window should popup and show type information, but instead the popup saysNo documentation found.
Control+click go to
This one's a bit less clear for records (compared to classes) due to positional fields and a potential lack of explicit type annotation, but at least for cases like below, it seems like control+clicking on
.bar
and.$1
should be pretty unambiguous. Pretty much anything is better than nothing :PHighlight usages under caret
Place the caret inside any of the variables below (
foo
,bar
, or$1
) - all usages of that symbol within its scope should be highlighted, but they aren't. Note that code likebar; bar;
is to show that neither will trigger a highlight. Also note that removing usages triggers an unused variable warning, so at least part of the analysis is working.Happy to provide screenshots and/or screencasts to help clarify any of these cases!
The text was updated successfully, but these errors were encountered: