Skip to content

Commit 997a7a4

Browse files
fix: fixed inline edit not working (#111)
1 parent defb883 commit 997a7a4

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.changeset/sharp-eels-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hai-build-code-generator": patch
3+
---
4+
5+
Fixed inline edit not working after cline latest merge (v3.8.6)

src/extension.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,11 @@ export function activate(context: vscode.ExtensionContext) {
257257
}
258258
context.subscriptions.push(vscode.window.registerUriHandler({ handleUri }))
259259

260-
const inlineEditingInstance = WebviewProvider.getVisibleInstance()
261-
if (inlineEditingInstance) {
262-
getAllExtensionState(inlineEditingInstance.controller.context, getWorkspaceID() || "").then(({ apiConfiguration }) => {
263-
context.subscriptions.push(
264-
...new InlineEditingProvider().withContext(context).withApiConfiguration(apiConfiguration).build(),
265-
)
266-
})
267-
}
260+
getAllExtensionState(sidebarWebview.controller.context, getWorkspaceID() || "").then(({ apiConfiguration }) => {
261+
context.subscriptions.push(
262+
...new InlineEditingProvider().withContext(context).withApiConfiguration(apiConfiguration).build(),
263+
)
264+
})
268265

269266
context.subscriptions.push(
270267
vscode.commands.registerCommand("hai.haiBuildTaskListClicked", (webview: any) => {

0 commit comments

Comments
 (0)