Replace mock ExtensionCore with real implementation#39
Merged
bomanaps merged 1 commit intoPatrick-Ehimen:mainfrom Nov 20, 2025
Merged
Replace mock ExtensionCore with real implementation#39bomanaps merged 1 commit intoPatrick-Ehimen:mainfrom
bomanaps merged 1 commit intoPatrick-Ehimen:mainfrom
Conversation
Reviewer's GuideThis PR swaps out the mock ExtensionCore stub for the actual implementation by using createExtensionCore(), reorders and enhances the activation sequence to properly initialize the SDK, environment variables, and core services before UI components, and adds the real extension-core dependency to package management. Sequence diagram for updated extension activation flowsequenceDiagram
participant VSCodeExtension as "LighthouseVSCodeExtension"
participant SDK as "LighthouseAISDK"
participant ExtensionCore as "ExtensionCoreImpl"
participant StatusBar as "VSCodeStatusBar"
participant TreeProvider as "VSCodeTreeProvider"
VSCodeExtension->>SDK: initialize()
VSCodeExtension->>ExtensionCore: initialize()
VSCodeExtension->>StatusBar: initialize()
VSCodeExtension->>TreeProvider: initialize()
Class diagram for ExtensionCore integration changesclassDiagram
class LighthouseVSCodeExtension {
- VSCodeCommandRegistry commandRegistry
- VSCodeProgressStreamer progressStreamer
- VSCodeWorkspaceProvider workspaceProvider
- LighthouseAISDK sdk
- VSCodeStatusBar statusBar
- VSCodeTreeProvider treeProvider
- ExtensionCore extensionCore
+ constructor()
+ activate()
}
class ExtensionCoreImpl {
- CommandRegistry
- ProgressStreamer
- WorkspaceContextProvider
- AICommandHandler
+ initialize()
}
class VSCodeStatusBar {
+ initialize()
}
class VSCodeTreeProvider {
+ initialize()
}
class LighthouseAISDK {
+ initialize()
}
LighthouseVSCodeExtension --> ExtensionCoreImpl : uses
LighthouseVSCodeExtension --> VSCodeStatusBar : uses
LighthouseVSCodeExtension --> VSCodeTreeProvider : uses
LighthouseVSCodeExtension --> LighthouseAISDK : uses
ExtensionCoreImpl --> AICommandHandler : creates
AICommandHandler --> LighthouseAISDK : creates own instance
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Pull Request
Description
Type of change
Checklist
Related Issues
Screenshots (if applicable)
Summary by Sourcery
Replace the mock extension core with the real implementation by using createExtensionCore, enable AI command handling, update the extension activation order to initialize the SDK, configure the API key, initialize the core, and then set up VSCode UI components, and add the core package as a dependency.
Enhancements:
Build: