Skip to content

Add setting and command to show/hide cells in outline#974

Open
vezwork wants to merge 1 commit into
mainfrom
feat/toggle-code-cells-in-outline
Open

Add setting and command to show/hide cells in outline#974
vezwork wants to merge 1 commit into
mainfrom
feat/toggle-code-cells-in-outline

Conversation

@vezwork
Copy link
Copy Markdown
Member

@vezwork vezwork commented May 8, 2026

Fixes #647

Kapture.2026-05-08.at.12.51.44.mp4
  • Adds a symbols.showCodeCellsInOutline setting to the Quarto configuration,
  • Adds a quarto.toggleCodeCellsInOutline command to toggle that setting.

Note: I attempted to add tests but for some reason in the tests the outline / document symbols refuse to change. I tried many things including waiting longer during the test after calling quarto.toggleCodeCellsInOutline, programmatically getting document symbols with vscode.executeDocumentSymbolProvider, looking with my own eyes at the outline during the test. I'm not sure why it doesn't work in the test environment!

@vezwork vezwork requested a review from juliasilge May 8, 2026 16:57
@posit-snyk-bot
Copy link
Copy Markdown
Contributor

posit-snyk-bot commented May 8, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Copy Markdown
Collaborator

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setting right now is only read when we start the app, so the experience is that the user changes the setting but doesn't observe the behavior change. I think we need to either:

  • add a listener for config change for this setting, OR
  • add a note to the setting description like "Restart to apply" or similar

/*
* symbols.ts
*
* Copyright (C) 2025 by Posit Software, PBC
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Copyright (C) 2025 by Posit Software, PBC
* Copyright (C) 2026 by Posit Software, PBC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toggle to show/hide code cells in Outline

3 participants