fix(arch): remove barrel import from controller.ts (#201) - #219
Merged
Conversation
Replace `import * as J from '../.'` with direct relative imports. Type `_logger`/`logger` getter as ILogger, removing unsafe cast. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
Author
Architecture Review: Final Approval (PR #219)I have performed a critical architectural and technical review of this PR. The implementation rigorously adheres to the mandates set during the planning phase and represents the definitive fix for our direct circular dependency risk. Key Achievements:
Final Verification:The 21 line additions and 48 deletions successfully replace the global namespace with explicit, stable imports. The clean This successfully concludes the Phase 2.3 tactical cleanup for the controller. LGTM. Note: Gemini was involved in creating this comment (but not without consulting me). |
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
import * as J from '../.'barrel import fromsrc/util/controller.tsConfiguration(from../vscode/conf) andisNullOrUndefined(from./util)_loggerfield andloggergetter asILogger; remove unsafeas LoggercastJ.VSCode.*/J.Journal.*/J.Util.*type annotations to use direct namesRelated
Test plan
npm run compile— cleannpm run compile-tests(tsc) — cleannpm run lint— cleannpm test— requires display (xvfb); run in CIimport * as Jremains incontroller.tsJ.references remain incontroller.ts🤖 Generated with Claude Code