Catch block parameters are not highlighted #4320
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
Describe the bug
Syntax highlighting for the catch block parameters is broken.
To Reproduce
Steps to reproduce the behavior:
error
andstackTrace
arguments are not highlighted, so they look the same as adynamic foo = 42;
variable would look.error
orstackTrace
, even though we know thaterror
is anObject
andstackTrace
is aStackTrace
Expected behavior
I expect that the
error
andstackTrace
arguments get highlighted in blue. When hovering over eithererror
orstackTrace
, the tooltip should display the proper type.Screenshots
Please complete the following information:
The text was updated successfully, but these errors were encountered: