提交 52bbfc1f 编写于 作者: J Johannes Rieken

reset match highlights

上级 435bdf66
...@@ -330,7 +330,6 @@ export abstract class BreadcrumbsPicker { ...@@ -330,7 +330,6 @@ export abstract class BreadcrumbsPicker {
this._tree.reveal(selection); this._tree.reveal(selection);
} }
this._input.setEnabled(true);
// input - interact with tree // input - interact with tree
this._disposables.push(dom.addStandardDisposableListener(this._input.inputElement, 'keyup', event => { this._disposables.push(dom.addStandardDisposableListener(this._input.inputElement, 'keyup', event => {
if (event.keyCode === KeyCode.DownArrow) { if (event.keyCode === KeyCode.DownArrow) {
...@@ -368,6 +367,8 @@ export abstract class BreadcrumbsPicker { ...@@ -368,6 +367,8 @@ export abstract class BreadcrumbsPicker {
} }
})); }));
this._input.setEnabled(true);
}, onUnexpectedError); }, onUnexpectedError);
// this._input.focus(); // this._input.focus();
...@@ -544,7 +545,9 @@ class HighlightingOutlineRenderer extends OutlineRenderer implements IHighlighti ...@@ -544,7 +545,9 @@ class HighlightingOutlineRenderer extends OutlineRenderer implements IHighlighti
export class BreadcrumbsOutlinePicker extends BreadcrumbsPicker { export class BreadcrumbsOutlinePicker extends BreadcrumbsPicker {
protected _getInput(input: BreadcrumbElement): any { protected _getInput(input: BreadcrumbElement): any {
return (input as TreeElement).parent; let element = input as TreeElement;
OutlineModel.get(element).updateMatches('');
return (element).parent;
} }
protected _getInitialSelection(_tree: ITree, input: BreadcrumbElement): any { protected _getInitialSelection(_tree: ITree, input: BreadcrumbElement): any {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册