mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
This commit is contained in:
parent
631802d5ce
commit
3b87c36e2d
|
@ -155,7 +155,7 @@ class DocumentSymbolsOutline implements IOutline<DocumentSymbolItem> {
|
|||
};
|
||||
const comparator = new DocumentSymbolComparator();
|
||||
const options = {
|
||||
collapseByDefault: true,
|
||||
collapseByDefault: target === OutlineTarget.Breadcrumbs,
|
||||
expandOnlyOnTwistieClick: true,
|
||||
multipleSelectionSupport: false,
|
||||
identityProvider: new DocumentSymbolIdentityProvider(),
|
||||
|
|
|
@ -333,7 +333,7 @@ class NotebookCellOutline implements IOutline<OutlineEntry> {
|
|||
installSelectionListener();
|
||||
|
||||
const options: IWorkbenchDataTreeOptions<OutlineEntry, FuzzyScore> = {
|
||||
collapseByDefault: true,
|
||||
collapseByDefault: _target === OutlineTarget.Breadcrumbs,
|
||||
expandOnlyOnTwistieClick: true,
|
||||
multipleSelectionSupport: false,
|
||||
accessibilityProvider: new NotebookOutlineAccessibility(),
|
||||
|
|
|
@ -252,7 +252,6 @@ export class OutlinePane extends ViewPane {
|
|||
this._domNode.classList.remove('message');
|
||||
const state = this._treeStates.get(`${newOutline.outlineKind}/${resource}`);
|
||||
tree.setInput(newOutline, state);
|
||||
tree.expandAll();
|
||||
|
||||
} else {
|
||||
// update: refresh tree
|
||||
|
|
Loading…
Reference in a new issue