quarto-dev / quarto-dev/quarto

Wrong "Editor selection is not within a code cell that supports formatting."

Open
#854 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.