Skip to content

Commit

Permalink
breadcrumbs - also reset focus when moving back to the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jul 16, 2018
1 parent 46a394e commit 550a03d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export class BreadcrumbsControl {

if (this._shouldRevealItem(event)) {
// reveal the item
this._widget.setFocused(undefined);
this._widget.setSelection(undefined);
this._revealInEditor(element);
return;
Expand All @@ -248,6 +249,7 @@ export class BreadcrumbsControl {
res.layout({ width: 220, height: 330 });
let listener = res.onDidPickElement(data => {
this._contextViewService.hideContextView();
this._widget.setFocused(undefined);
this._widget.setSelection(undefined);
if (data) {
this._revealInEditor(data);
Expand Down

0 comments on commit 550a03d

Please sign in to comment.