Skip to content

fix: show relative paths and filter empty files from dashboard and sidebar#2

Merged
kool7 merged 2 commits intomainfrom
fix/display-paths-filter-empty-files
May 3, 2026
Merged

fix: show relative paths and filter empty files from dashboard and sidebar#2
kool7 merged 2 commits intomainfrom
fix/display-paths-filter-empty-files

Conversation

@kool7
Copy link
Copy Markdown
Owner

@kool7 kool7 commented May 2, 2026

Problems fixed

1. Full absolute paths in dashboard and sidebar
Files were showing as C:\Users\KuldeepChouhan\Realpage\...\src\__init__.py. Now shows src\__init__.py — relative to workspace root.

2. Empty __init__.py files cluttering the list
Files with 0 executable statements (0/0) were showing as 100% covered — misleading noise. Filtered out from both dashboard and sidebar.

What changed

  • dashboardPanel.ts: strip workspace root prefix from displayed paths; filter files where executedLines + missingLines === 0
  • treeProvider.ts: same two fixes applied to the sidebar tree view

@kool7 kool7 self-assigned this May 2, 2026
@kool7 kool7 added bug Something isn't working enhancement New feature or request labels May 2, 2026
@kool7 kool7 merged commit 8e007ef into main May 3, 2026
1 check passed
kool7 added a commit that referenced this pull request May 4, 2026
Incorporates all changes cleanly on top of main (after PR #2 relative-paths
fix and PR #3 CI release automation):

- Parse arc table for branch-coverage .coverage files (coverage.py branch=true)
- inferMissingLines tracks bracket depth — no false reds on __all__, multi-line calls
- Pytest auto-run via child_process.spawn — no ^C corruption from Python extension
- Debounced file-watcher reloads, mutex on handleNoCoverage prompt
- Consistent filtered % across status bar, tree Overall, and dashboard ring
- displayPath (workspace-relative) preserved from PR #2 in both dashboard and tree
- Empty-file filter from PR #2 combined with test-file filter (excludeTestFiles)
- Dashboard tab ThemeIcon, header inline SVG — both themes correct
- Coverage tree back in Explorer panel, Summary clickable to open dashboard
- Removed info-message toast on every reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant