vscode-code-coverage icon indicating copy to clipboard operation
vscode-code-coverage copied to clipboard

Request: Monorepo support (with deep file structures and relative .lcov paths)

Open npdev453 opened this issue 2 years ago • 1 comments

Example repo structure:

lib1/coverage/lcov.info
lib1/src/file.ts
lib2/coverage/lcov.info
lib2/src/file.ts

Search config

**/coverage/lcov.info

lcov.info

TN:
SF:src/file.ts
...

Produces:

[{
	"resource": "/test/repro/src/file.ts",
	"owner": "coverage",
	"severity": 2,
	"message": "[code-coverage] line not covered",
	"startLineNumber": 17,
	"startColumn": 1,
	"endLineNumber": 17,
	"endColumn": 1001
}]

// and The editor could not be opened because the file was not found.

Expects:

File should be trying to be located not from the opened workspace base path but maybe from base path of regexp of config, or maybe special config (like deep-search: true that will add (group (**/)) to regexp and cut them next)

npdev453 avatar Oct 08 '23 06:10 npdev453

yes, project root setting is necessary

mmospanenko avatar Oct 08 '24 16:10 mmospanenko