Visual editor outline shows Code Cell entries; quarto.symbols.showCodeCellsInOutline has no effect
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend
Research direction
Locate the visual editor outline renderer and compare its handling of rmd_chunk items with the source-mode implementation of quarto.symbols.showCodeCellsInOutline. Reproduce the issue with a .qmd containing headings and R or Python cells, then verify that the setting hides Code Cell entries in the visual-editor outline without removing headings or metadata.
Written by the indexing model from the issue text.
Description
Description
In the Quarto visual editor, the outline panel (Ctrl+Alt+O) lists every code block as a Code Cell entry, cluttering heading navigation in long documents. The existing setting quarto.symbols.showCodeCellsInOutline has no effect on this outline.
Environment
- Positron 1.130.0 (VS Code / Code OSS derivative) on Windows 11
- Quarto extension: 1.136.0 and 1.137.0 (both reproduce)
Steps to reproduce
- Open a
.qmdwith several R/Python code cells and headings in the visual editor. - Press
Ctrl+Alt+Oto open the outline. - The outline shows each code cell as a
Code Cellitem interleaved with headings (onlyMetadataand heading entries are desired). - Set
quarto.symbols.showCodeCellsInOutline: falsein settings and reload. Source-mode outline obeys it; the visual-editor outline does not change.
Background
quarto.symbols.showCodeCellsInOutline (added in 1.133.0, #974) only controls the source-mode outline / workspace symbols. The visual editor's outline is implemented inside the editor webview and does not read this setting at all, so there is no user-facing way to hide code cells there.
Expected behavior
Either:
quarto.symbols.showCodeCellsInOutlineshould also apply to the visual editor outline, or- the visual editor outline should expose its own toggle and default to headings/metadata only (code cells are rarely useful as outline entries).
Local workaround (what we ship)
Filter out rmd_chunk items in the outline renderer:
o = u => {
if (u.type === "rmd_chunk") return null;
// ... original item rendering
}
Works, but requires patching the bundled extension file (lost on every extension upgrade).
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quarto-dev/quarto
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
quarto-dev/quarto#1099 ·
-
vscode
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
quarto-dev/quarto#934 · 1 comment · 2 reactions ·
-
vscode
Difficulty 5/5 Over a week Newbie friendliness 42/100
quarto-dev/quarto#1130 ·
-
vscode
Difficulty 3/5 1-2 days Newbie friendliness 68/100
quarto-dev/quarto#1122 ·
-
bug vscode zotero
Difficulty 4/5 3-5 days Newbie friendliness 48/100
quarto-dev/quarto#1119 · 1 comment ·
All issues in quarto-dev/quarto
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·