quarto-dev / quarto-dev/quarto

Expand/Shrink Selection stops working inside of fenced divs (:::).

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

Nobody has claimed this yet.

bug vscode
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

Bug description

Expand Selection (editor.action.smartSelect.expand) and Shrink Selection (editor.action.smartSelect.expand) stops working correctly if the R code chunk is inside a fenced div. It expands to select everything or select none.

Steps to reproduce

Following R code cell is an example where this behavior occurs. Expand Selection doesn't expand to brackets or line, it expands to all in the cell.

::: {.callout-note collapse="true"}
```{r}
library(stringr)

options(
  max.print = 200
)
```
:::

### Actual behavior

_No response_

### Expected behavior

_No response_

### Your environment

_No response_

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 by reproducing the provided R code chunk inside the fenced div and compare Expand Selection and Shrink Selection behavior with the same chunk outside it. Trace how fenced-div boundaries affect selection handling; done means expansion reaches brackets and lines normally instead of selecting the entire cell or nothing.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, r
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.