Skip to content

Commit 733b3af

Browse files
allquixoticoz-agent
andcommitted
fix(editor-redirect): close primary sidebar instead of revealing Explorer (3.53.4)
When defaultRenderContext is 'editor', redirectSidebarToEditor() used to call 'workbench.view.explorer' after revealing CRC in an editor tab, which kept the primary sidebar open showing the file Explorer. That made it look like launching CRC always popped open the left pane. We now call 'workbench.action.closeSidebar' instead so the primary sidebar is tucked away after CRC lands in the editor group, matching the user's 'editor' preference. Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 6a18155 commit 733b3af

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/core/webview/ClineProvider.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,12 @@ export class ClineProvider
961961
await vscode.commands.executeCommand(getCommand("openInNewTab"))
962962
}
963963

964-
await vscode.commands.executeCommand("workbench.view.explorer")
964+
// When the user's preferred render context is "editor", close the primary
965+
// sidebar that VS Code reflexively opened to host the sidebar webview view.
966+
// This keeps the workspace focused on the editor surface where CRC is now
967+
// rendered, instead of leaving the Explorer (or any other sidebar view)
968+
// visible on the left.
969+
await vscode.commands.executeCommand("workbench.action.closeSidebar")
965970
await vscode.commands.executeCommand("workbench.action.focusActiveEditorGroup")
966971
} catch (error) {
967972
this.log(

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "%extension.displayName%",
44
"description": "%extension.description%",
55
"publisher": "allquixotic",
6-
"version": "3.53.3",
6+
"version": "3.53.4",
77
"icon": "assets/icons/icon.png",
88
"galleryBanner": {
99
"color": "#617A91",

0 commit comments

Comments
 (0)