quarto-dev / quarto-dev/quarto

Visual editor outline shows Code Cell entries; quarto.symbols.showCodeCellsInOutline has no effect

Open
#1,114 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

visual-editor
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
  1. Open a .qmd with several R/Python code cells and headings in the visual editor.
  2. Press Ctrl+Alt+O to open the outline.
  3. The outline shows each code cell as a Code Cell item interleaved with headings (only Metadata and heading entries are desired).
  4. Set quarto.symbols.showCodeCellsInOutline: false in 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.showCodeCellsInOutline should 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.