From 4d693d25ab9b5704f30e8eebf7b89fa3aa415201 Mon Sep 17 00:00:00 2001
From: Shawn <hn62257@gmail.com>
Date: Thu, 11 Jan 2018 03:04:12 +0800
Subject: [PATCH] Fix search field is not auto focused

---
 extension.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/extension.js b/extension.js
index dd86937..1fe9c7d 100644
--- a/extension.js
+++ b/extension.js
@@ -8,10 +8,12 @@ function activate(context) {
             var name = path.basename(fileUri.fsPath);
             ncp.copy(name, function() {
                 vscode.commands.executeCommand('workbench.action.findInFiles');
+                vscode.commands.executeCommand('workbench.action.search.toggleQueryDetails');
+                vscode.commands.executeCommand('workbench.action.search.toggleQueryDetails');
                 vscode.commands.executeCommand('editor.action.clipboardPasteAction');
                 vscode.commands.executeCommand('toggleSearchWholeWord');
                 vscode.commands.executeCommand('toggleSearchWholeWord');
-            })
+            });
         }
     });
     context.subscriptions.push(disposable);