From 6686a6af84a47dc6e06bd33866c7e6aa0ab29dae Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 9 Jan 2025 22:43:43 -0800 Subject: [PATCH] [bug] allow files excluded from vscode settings to be found --- src/lcovReport.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lcovReport.ts b/src/lcovReport.ts index e379ee6..4173b73 100644 --- a/src/lcovReport.ts +++ b/src/lcovReport.ts @@ -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);