Add setting and command to show/hide cells in outline#974
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
juliasilge
left a comment
There was a problem hiding this comment.
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
Co-authored-by: Julia Silge <julia.silge@gmail.com>
In my testing in both VSCode and Positron, when I use the "Quarto: Toggle Code Cells in Outline" command the change in the outline is instantly reflected. Are you not experiencing that in your testing? Or do you mean if the user changes the setting manually we should notify them to restart? |
Yep, that's right. Right now, if the user changes the setting, nothing happens until the next time they close/open the app or reload the window. I think the best choice is to use It also would be worth re-examining the no-op edit hack and seeing if we can either:
|
Fixes #647
Kapture.2026-05-08.at.12.51.44.mp4
symbols.showCodeCellsInOutlinesetting to theQuartoconfiguration,quarto.toggleCodeCellsInOutlinecommand 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 withvscode.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!