Skip to content

Commit 53e4417

Browse files
takakoutsodaniel-lxs
authored andcommitted
moved auto import settings to after webview registration
1 parent 1167f1e commit 53e4417

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/extension.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ export async function activate(context: vscode.ExtensionContext) {
115115
context.subscriptions.push(codeIndexManager)
116116
}
117117

118+
context.subscriptions.push(
119+
vscode.window.registerWebviewViewProvider(ClineProvider.sideBarId, provider, {
120+
webviewOptions: { retainContextWhenHidden: true },
121+
}),
122+
)
123+
118124
// Auto-import configuration if specified in settings
119125
try {
120126
await autoImportSettings(outputChannel, {
@@ -128,12 +134,6 @@ export async function activate(context: vscode.ExtensionContext) {
128134
)
129135
}
130136

131-
context.subscriptions.push(
132-
vscode.window.registerWebviewViewProvider(ClineProvider.sideBarId, provider, {
133-
webviewOptions: { retainContextWhenHidden: true },
134-
}),
135-
)
136-
137137
registerCommands({ context, outputChannel, provider })
138138

139139
/**

0 commit comments

Comments
 (0)