-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
Milestone
Description
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
errorandstackTracearguments are not highlighted, so they look the same as adynamic foo = 42;variable would look. - Type inference does not work either when hovering over either
errororstackTrace, even though we know thaterroris anObjectandstackTraceis aStackTrace
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.
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
Metadata
Metadata
Assignees
Labels
in editorRelates to code editing or language featuresRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become availableSomething that requires changes in the Dart/Flutter SDK to ship before it will become available
