quarto-dev / quarto-dev/quarto
Wrong "Editor selection is not within a code cell that supports formatting."
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
Bug description
This is mostly to track real impact of this.
In some cases (unclear what are the requirements here), even though the document is correct and there is a valid code cell, the extension displays an error notification: "Editor selection is not within a code cell that supports formatting."
https://github.com/user-attachments/assets/89c6d4ef-e65b-4eff-b46e-600675ebf0e1
Steps to reproduce
No response
Actual behavior
No response
Expected behavior
No response
Your environment
- VSCode 1.105.1
- Quarto extension 1.126.0
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 with apps/vscode/src/providers/format.ts at lines 130-154 and inspect the conditions that produce the notification. Try to reproduce it with VSCode 1.105.1 and Quarto extension 1.126.0 using a valid code cell and editor selection. Done means the false error is no longer shown when formatting a supported code cell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100