review-followups-3: CodeLens, per-provider toggles, pre-release tags#13
Closed
dmartinochoa wants to merge 1 commit into
Closed
review-followups-3: CodeLens, per-provider toggles, pre-release tags#13dmartinochoa wants to merge 1 commit into
dmartinochoa wants to merge 1 commit into
Conversation
Stacked on review-followups-batch-2 (#12). Lands R26, R25, R24. R26 — inline CodeLens summary: - src/codeLens.ts: FindingsCodeLensProvider pins a "Pipeline-Check: 2 critical · 1 high" lens at the top of every scanned file. Click navigates to the Findings panel. Re-emits on every onDidChangeDiagnostics; the lens text tracks the latest LSP publish. - summariseCounts and composeLensTitle are pure; tests pin the per-severity tally, severity-order rendering, and the "null when empty so the lens is omitted" contract. - src/extension.ts: registers the provider with TRIGGER_DOCUMENT_SELECTOR. R25 — per-provider toggles: - src/providers.ts: PROVIDERS map keyed by ProviderId ('github-actions', 'gitlab', 'azure', 'bitbucket', 'circleci', 'cloud-build', 'buildkite', 'drone', 'jenkins', 'dockerfile'). Dockerfile + Containerfile collapse to one 'dockerfile' id since they share syntax. TRIGGER_PATTERNS is now derived from the map so the two can't drift. - providerForPath(): glob-matches a path to a provider id. Tiny local glob matcher covers the dialect our patterns use (**, *, brace alternatives) — sufficient for the actual patterns and side-steps a runtime dependency. - package.json: new pipelineCheck.disabledProviders setting (array of provider ids, enum-constrained). The middleware drops every diagnostic for a URI whose provider sits in the disabled set, so the gutter / Problems / Findings / status bar / CodeLens all respect the toggle through one filter. - providers.test.ts: tests for every provider's path match, Dockerfile/Containerfile aliasing, Windows-backslash normalisation, and the "no match" return. R24 — pre-release channel via tag naming: - .github/workflows/publish.yml: new "Detect pre-release tag" step. Tags with a `-` after the semver core (e.g. v0.2.0-rc.1) ship as pre-release; stable tags (v0.2.0) ship to the stable channel. Detection sets PRERELEASE_FLAG (passed to vsce publish, vsce package, and ovsx publish) and GH_PRERELEASE (passed to gh release create). Header comment documents the convention. Total: 90 tests pass (was 75 on #12). +4 codeLens + +11 providers. Lint, compile, smoke all green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced May 19, 2026
Member
Author
5 tasks
dmartinochoa
added a commit
that referenced
this pull request
May 19, 2026
…release (#31) #16 — switch PIP_INSTALL_COMMAND to `python -m pip install ...` instead of the bare `pip install ...` form. Two real-world failure modes drove this: a corporate Windows PowerShell ExecutionPolicy that allows python.exe but blocks pip.exe (the shim is a script), and the case where the official Python installer leaves `python` on PATH but not `pip` (the Scripts directory wasn't added). Both are silent today — the user sees "command not found" or a PowerShell policy error and has no way to recover from the install-in-terminal CTA. The `python -m pip` form sidesteps both by running pip via the interpreter, and matches PyPA's own recommendation. README and sample-workflow README copy updated. #13 — status-bar relevance latch releases on folder removal. A multi-root workspace user who removed the last CI folder used to see the bar item pinned to "clean" for the rest of the session — the `relevant` flag was a one-way latch. Now subscribes to onDidChangeWorkspaceFolders and re-sweeps: when neither CI candidate files nor current findings remain, the item hides again. Re-adding a CI folder re-shows. The diagnostic check inside the recheck guards against a momentary "no candidates" state during a rebuild accidentally hiding the bar. Tests: +6 (245 → 251). Install: +2 pinning the `python -m pip` prefix and the [lsp] extra. Status bar: +4 covering the latch-release path (hides on folder removal, holds on stale findings, re-latches on folder add, single-subscription contract). Stub additions: __stubWorkspaceFoldersListeners so tests can fire onDidChangeWorkspaceFolders manually. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third batch from the post-v0.1.1 review. Stacked on #12, base is `review-followups-batch-2`. Lands R26, R25, R24.
What changed
R26 — Inline CodeLens summary
R25 — Per-provider toggles in settings
R24 — Pre-release channel via tag naming
Test plan
Notes
🤖 Generated with Claude Code