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:
Below is an example without activated plugin in the vite.config.ts and empty lines in the spec file:
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:
Please provide the environment you discovered this bug in.
Clone minimal reproducible example:
https://github.com/kevinkasper/vitest-vscode-gutter-icons-mre
yarn install
src/app/app.component.spec.ts file
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:Below is an example without activated plugin in the
vite.config.ts
and empty lines in the spec file: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