提交 4f98d9c0 编写于 作者: J Johannes Rieken

no double reveal of notebook symbols

上级 0c02f245
......@@ -209,11 +209,6 @@ class DocumentSymbolsOutline implements IOutline<DocumentSymbolItem> {
}
async reveal(entry: DocumentSymbolItem, options: IEditorOptions, sideBySide: boolean): Promise<void> {
if (entry instanceof OutlineElement) {
const position = Range.getStartPosition(entry.symbol.selectionRange);
this._editor.revealPositionInCenterIfOutsideViewport(position, ScrollType.Immediate);
this._editor.setPosition(position);
}
const model = OutlineModel.get(entry);
if (!model || !(entry instanceof OutlineElement)) {
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册