Skip to content

Commit 86d575f

Browse files
committed
1 parent f457cf5 commit 86d575f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/contrib/outline/browser/outlinePane.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ export class OutlinePane extends ViewPane {
564564
return;
565565
}
566566

567-
this._revealTreeSelection(newModel, e.element, !e.editorOptions.preserveFocus || !!e.editorOptions.pinned, e.sideBySide);
567+
this._revealTreeSelection(newModel, e.element, !!e.editorOptions.preserveFocus || !e.editorOptions.pinned, e.sideBySide);
568568
}));
569569

570570
// feature: reveal editor selection in outline
@@ -618,12 +618,12 @@ export class OutlinePane extends ViewPane {
618618
}));
619619
}
620620

621-
private async _revealTreeSelection(model: OutlineModel, element: OutlineElement, focus: boolean, aside: boolean): Promise<void> {
621+
private async _revealTreeSelection(model: OutlineModel, element: OutlineElement, preserveFocus: boolean, aside: boolean): Promise<void> {
622622
await this._editorService.openCodeEditor(
623623
{
624624
resource: model.uri,
625625
options: {
626-
preserveFocus: !focus,
626+
preserveFocus,
627627
selection: Range.collapseToStart(element.symbol.selectionRange),
628628
selectionRevealType: TextEditorSelectionRevealType.NearTopIfOutsideViewport,
629629
}

0 commit comments

Comments
 (0)