quarto-dev / quarto-dev/quarto
Visual editor outline shows Code Cell entries; quarto.symbols.showCodeCellsInOutline has no effect
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
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).
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.
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.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100