Skip to content

Commit

Permalink
explorer: If there is something being edited via input box make sure …
Browse files Browse the repository at this point in the history
…to close it

fixes microsoft#96198
  • Loading branch information
isidorn authored and leilapearson committed Apr 27, 2020
1 parent 42daa7b commit 17787b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/workbench/contrib/files/browser/fileActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit 17787b1

Please sign in to comment.