Move problems processing to dedicated module#162
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
There was a problem hiding this comment.
Pull request overview
This PR refactors solution conversion diagnostics handling by moving “Problems”/diagnostic processing out of SolutionConverterImpl into a dedicated SolutionProblemsImpl, aligning with the separation requested in #146.
Changes:
- Introduces
SolutionProblemsImplto enrich tool output and populate VS Code diagnostics ononDidConvertCompleted. - Extends
ConvertResultDatato carrylogMessagesand optionaltoolsOutputMessages. - Cleans up
SolutionConverterImpland updates/relocates unit tests accordingly.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/solutions/solution-problems.ts |
New module responsible for enriching tool output and updating the VS Code Problems/diagnostics view. |
src/solutions/solution-problems.test.ts |
New unit tests covering diagnostics creation, file mapping, and west-message formatting/enrichment. |
src/solutions/solution-event-hub.ts |
Adds logMessages and toolsOutputMessages to ConvertResultData so downstream consumers can process diagnostics. |
src/solutions/solution-event-hub.test.ts |
Updates tests to include required logMessages in completion events. |
src/solutions/solution-converter.ts |
Removes diagnostic collection logic; now enriches tool output, computes severity, and emits enriched results via the event hub. |
src/solutions/solution-converter.test.ts |
Updates tests to account for diagnostics moving to SolutionProblemsImpl and asserts emitted toolsOutputMessages. |
src/solutions/csolution.ts |
Removes stored logMessages state from CSolution (no longer set by converter). |
src/solutions/solution-manager.test.ts |
Updates ConvertResultData fixture to include required logMessages. |
src/desktop/extension.ts |
Wires up SolutionProblemsImpl activation alongside other extension components. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Coverage Impact ⬆️ Merging this pull request will increase total coverage on Modified Files with Diff Coverage (2)
🤖 Increase coverage with AI coding...🚦 See full report on Qlty Cloud » 🛟 Help
|

Fixes
Changes
Checklist