Skip to content

Commit

Permalink
Fix #50985 - don't take editor text when toggling search details
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Jun 2, 2018
1 parent 4734e1c commit 3e07cc0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
when: Constants.SearchViewVisibleKey,
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_J,
handler: accessor => {
openSearchView(accessor.get(IViewletService), accessor.get(IPanelService), true)
.then(view => view.toggleQueryDetails());
const searchView = getSearchView(accessor.get(IViewletService), accessor.get(IPanelService));
if (searchView) {
searchView.toggleQueryDetails();
}
}
});

Expand Down

0 comments on commit 3e07cc0

Please sign in to comment.