From 4e433c9551327e17db139cf4e6909bb296b322d0 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Mon, 6 Mar 2017 16:42:20 -0800 Subject: [PATCH] Collapse replace box on cmd+f, same as search viewlet - see #9513 --- src/vs/editor/contrib/find/common/findController.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vs/editor/contrib/find/common/findController.ts b/src/vs/editor/contrib/find/common/findController.ts index 029685c6622..a3ad7d4f2b5 100644 --- a/src/vs/editor/contrib/find/common/findController.ts +++ b/src/vs/editor/contrib/find/common/findController.ts @@ -205,8 +205,11 @@ export class CommonFindController extends Disposable implements editorCommon.IEd // Overwrite isReplaceRevealed if (opts.forceRevealReplace) { stateChanges.isReplaceRevealed = true; + } else if (!this._findWidgetVisible.get()) { + stateChanges.isReplaceRevealed = false; } + this._state.change(stateChanges, false); if (!this._model) {