quarto-dev / quarto-dev/quarto
Quarto VSCode extension does not recognize the chunk labels correctly for Rmd
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
Bug description
Quarto VS Code extension seems not to be able to recognize chunk labels correctly. I initially thought it was Positron issue but then was told it is about Quarto extension. For rmarkdown files, the chuck label cannot be correctly recognized in Positron unless they are written in the quarto rather than rmarkdown style. See more details and screenshots here: https://github.com/posit-dev/positron/issues/6977
Steps to reproduce
Create a rmd file as follows:
```{r abc}
"hello"
```
```{r def}
#| label: def
"hello"
```
Actual behavior
The OUTLINE in Positron shows as follows:
Expected behavior
Recognize the chunk labels correctly and shown in Positron OUTLINE pane.
Your environment
Positron Version: 2025.03.0 (user setup) build 116
Code - OSS Version: 1.96.0
Commit: 7f0f93873e8b24c9f393bb3586724f4783c5e72c
Date: 2025-03-01T19:05:24.180Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.26100
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
Start by reproducing the issue with the two Rmd chunks shown in the report, then locate the Quarto VS Code extension's chunk-label recognition and outline handling. Done means both abc and def labels are recognized correctly in Positron's OUTLINE pane.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, r, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100