Skip to content

Commit

Permalink
Merge pull request #15 from Ryang20718/user/ryang/allow_null
Browse files Browse the repository at this point in the history
[bug] allow files excluded from vscode settings to be found
  • Loading branch information
rherrmannr authored Jan 10, 2025
2 parents 8f4c79c + 6686a6a commit 2ab4e74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lcovReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ function runCoverage() {

// check if file path must be changed to absolute
if (!path.isAbsolute(searchPath)) {
vscode.workspace.findFiles(searchPath).then((files) => {
// https://code.visualstudio.com/api/references/vscode-api
// pass in null to vscode workspace find files to search all files matched in filepath
// even if the filepath is in the workspace files.exclude setting of vscode
vscode.workspace.findFiles(searchPath, null).then((files) => {
if (files.length > 0) {
activeLcovFile = files[0].fsPath;
return loadLcovFromFileAndApplyCoverage(resolve, reject);
Expand Down

0 comments on commit 2ab4e74

Please sign in to comment.