Skip to content

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

@cy-james-lee

Description

@cy-james-lee

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvscode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions