Skip to content

Commit cbce5aa

Browse files
committed
PR feedback
1 parent 503b68e commit cbce5aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export async function activate(context: vscode.ExtensionContext) {
117117
}
118118
}
119119

120+
// Initialize the provider *before* the Roo Code Cloud service.
121+
const provider = new ClineProvider(context, outputChannel, "sidebar", contextProxy, mdmService)
122+
120123
const postStateListener = () => ClineProvider.getVisibleInstance()?.postStateToWebview()
121124

122125
// Initialize Roo Code Cloud service.
@@ -162,7 +165,7 @@ export async function activate(context: vscode.ExtensionContext) {
162165
// Add to subscriptions for proper cleanup on deactivate.
163166
context.subscriptions.push(cloudService)
164167

165-
const provider = new ClineProvider(context, outputChannel, "sidebar", contextProxy, mdmService)
168+
// Finish initializing the provider.
166169
TelemetryService.instance.setProvider(provider)
167170

168171
context.subscriptions.push(

0 commit comments

Comments
 (0)