Skip to content

Commit 1056da1

Browse files
committed
fix: restore postStateToWebview call in refreshWorkspace method
1 parent b3b2b33 commit 1056da1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/activate/registerCommands.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
9696

9797
await visibleProvider.removeClineFromStack()
9898
await visibleProvider.refreshWorkspace()
99-
await visibleProvider.postStateToWebview()
10099
await visibleProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
101100
// Send focusInput action immediately after chatButtonClicked
102101
// This ensures the focus happens after the view has switched

src/core/webview/ClineProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,7 @@ export class ClineProvider
14391439

14401440
async refreshWorkspace() {
14411441
this.currentWorkspacePath = getWorkspacePath()
1442+
await this.postStateToWebview()
14421443
}
14431444

14441445
async postStateToWebview() {

0 commit comments

Comments
 (0)