diff --git a/src/vs/workbench/contrib/files/browser/fileActions.ts b/src/vs/workbench/contrib/files/browser/fileActions.ts index b538a703afed0..154344ce1359f 100644 --- a/src/vs/workbench/contrib/files/browser/fileActions.ts +++ b/src/vs/workbench/contrib/files/browser/fileActions.ts @@ -706,6 +706,11 @@ export class CollapseExplorerView extends Action { const explorerView = explorerViewlet.getExplorerView(); if (explorerView) { explorerView.collapseAll(); + // If there is something being edited via input box make sure to close it #96198 + const editable = this.explorerService.getEditable(); + if (editable) { + await this.explorerService.setEditable(editable.stat, null); + } } } }