Workbench CloserAutomatically closes selected VS Code workbench parts after enough editor activity. The extension can close these areas independently:
How it worksVS Code's public extension API does not expose a general workbench focus-lost event for these areas. Workbench Closer therefore uses these editor-side signals as practical proxies:
Terminal activation and focus are intentionally ignored. VS Code's public extension API does not provide a reliable mapping between an active terminal and its editor-area or bottom-panel representation, so terminal events are not used as automatic-closing triggers. An active-editor change is not a closing signal. It starts a new activity session by clearing the previous editor's selection-change history and any pending close delay, but it does not close anything by itself. Editor activity detectionEach workbench part has its own
There is no timer running in the background. The check happens only when a selection change is reported. There is no quiet-period re-arm requirement. After a part closes, a new selection-change history can immediately start building. This is an activity heuristic, not a general focus event. For example, merely reading an editor without changing its selection may not produce enough events to close a workbench part. Commands
The toggle command enables or disables all three targets together. Individual target settings remain available in Settings. SettingsAll targets are enabled by default. The default threshold is three selection changes in a three-second activity window and closing delay:
For example, to start closing the primary sidebar after three selection changes within one second, then close it on the first later selection change after one second from the first of those changes:
Development
Open the project in VS Code and press Packaging and publishingCreate a VSIX package locally:
Publish to the Visual Studio Marketplace after authenticating
The optional Open VSX command is also available:
LicenseMIT |