analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.49k stars 237 forks source link

Gutter icons in VS Code are displayed in the wrong line #1211

Open kevinkasper opened 1 month ago

kevinkasper commented 1 month ago

Please provide the environment you discovered this bug in.

Clone minimal reproducible example:

https://github.com/kevinkasper/vitest-vscode-gutter-icons-mre

  1. yarn install
  2. Open src/app/app.component.spec.ts file
  3. Run all tests within the Test Explorer

Which area/package is the issue in?

vite-plugin-angular

Description

The gutter icons in VS Code are displayed in the wrong line if the @analogjs/vite-plugin-angular plugin is used.

Below is an example with activated plugin in the vite.config.ts and empty lines in the spec file:

image

Below is an example without activated plugin in the vite.config.ts and empty lines in the spec file:

image

In the second screenshot, the tests fail, but the gutter icons are in the right place.


This problem has already been reported in the vitest-dev/vscode repository. In the following issue it was confirmed that it is a problem with @analogjs/vite-plugin-angular:

https://github.com/vitest-dev/vscode/issues/400

Many thanks in advance!

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

Kendox-STA commented 1 month ago

Same issue here, which prevents us from evaluating Vitest. Would be great to get that resolved.