Skip to content

Commit 063d715

Browse files
authored
Don't wait for code symbols when providing outlines to view (microsoft#210708)
1 parent 5e1674b commit 063d715

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ export class NotebookOutlineCreator implements IOutlineCreator<NotebookEditor, O
561561
if (target === OutlineTarget.QuickPick && showAllGotoSymbols) {
562562
await outline.setFullSymbols(cancelToken);
563563
} else if (target === OutlineTarget.OutlinePane && showAllOutlineSymbols) {
564-
await outline.setFullSymbols(cancelToken);
564+
// No need to wait for this, we want the outline to show up quickly.
565+
void outline.setFullSymbols(cancelToken);
565566
}
566567

567568
return outline;

src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ export class NotebookCellOutlineProvider {
115115
delayedRecompute();
116116
}
117117
}));
118+
// Perhaps this is the first time we're building the outline
119+
if (!this._entries.length) {
120+
this._recomputeState();
121+
}
118122
}
119123
this._disposables.add(this._editor.onDidChangeModel(monitorModelChanges));
120124
monitorModelChanges();

0 commit comments

Comments
 (0)