Closed
Description
Describe the bug
The gutter icons in test files appear in the wrong lines. This also affects the in-line stack trace boxes that pop up when a test fails.
To Reproduce
Steps to reproduce the behavior:
- create a fresh flutter project with the cli:
flutter create new_project
- open VSCode and open the
new_project
folder - Go to
test/widget_test.dart
- Make a change to make the test fail (e.g. change the
'0'
to'1'
in line 19) - Run the test (by clicking on the inline run button)
Expected behavior
The gutter icon of the test should be at line 14 where the test is defined. The test's failure stack trace should also appear there.
Actual behavior
Instead the gutter icon is at line 31. It is consistent across VSCode and OS restarts,
Screenshots
This issue started happening to me since about 3 days ago. Regrettably I can't pin point it to updating something that might have broken it. I hope somebody who has a setup like mine can replicate it
Please complete the following information:
- Operating System and version: Windows 10 Home, version 22H2, build 19045.2965
- VS Code version: 1.79.1
- Dart extension version: 3.66.0
- Dart/Flutter SDK version: 3.0.2/3.10.2