### Bug description

Os: Ubuntu 22.04
VScode: 1.72.2
Quarto: 1.1.251
Quarto VScode extension: v1.50.0

`render-on-save: true` on yaml header does not work consistently. Only the first time the notebook is saved with `Ctrl+s` the notebook renders, but as soon as a new cell is added to the notebook and `Ctrl+s` used again, rendering does not work. 
 
# Steps to reproduce

1. Open notebook
2.  Ctrl+S     - renders the slides without issue
3.  Click on yaml header
4.  Press keyboard  key 'b'  - adds empty header below the yaml header
5.  Ctrl+S     -  does not render the slides

# Screenshot of empty cell added below yaml header

![add empty cell below yaml](https://user-images.githubusercontent.com/61335136/197248581-f1c7a8f0-d7bf-415f-89b2-34707e410f37.png)

# Reproducible example

[slides_quarto_sample_render_on_save.zip](https://github.com/quarto-dev/quarto-cli/files/9840965/slides_quarto_sample_render_on_save.zip)





### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
jjallaire
2022-10-21T16:59:33Z
rleyvasal
bug
v1.3
closed
`render-on-save: true`  does not consistently work VScode + Jupyter + Python + Revealjs
https://github.com/quarto-dev/quarto-cli/issues/2967