Describe the bug
Syntax highlighting for the catch block parameters is broken.
To Reproduce
Steps to reproduce the behavior:
- Create a new file, i.e. catch.dart and paste in the code sample
try {
// do something
} catch (error, stackTrace) {
// handle error
}
- Open the file in VSCode
- The
error and stackTrace arguments are not highlighted, so they look the same as a dynamic foo = 42; variable would look.
- Type inference does not work either when hovering over either
error or stackTrace, even though we know that error is an Object and stackTrace is a StackTrace
Expected behavior
I expect that the error and stackTrace arguments get highlighted in blue. When hovering over either error or stackTrace, the tooltip should display the proper type.
Screenshots

Please complete the following information:
- Operating System and version: macOS 12.2.1 21D62 darwin-x64
- VS Code version: 1.74.1
- Dart extension version: v3.56.0
- Dart/Flutter SDK version: Dart 2.19.0-444.1.beta | Flutter 3.7.0-1.1.pre (beta)
- Target device (if the issue relates to Flutter debugging): N/A
Describe the bug
Syntax highlighting for the catch block parameters is broken.
To Reproduce
Steps to reproduce the behavior:
errorandstackTracearguments are not highlighted, so they look the same as adynamic foo = 42;variable would look.errororstackTrace, even though we know thaterroris anObjectandstackTraceis aStackTraceExpected behavior
I expect that the
errorandstackTracearguments get highlighted in blue. When hovering over eithererrororstackTrace, the tooltip should display the proper type.Screenshots

Please complete the following information: