posit-dev / positron

Positron, a next-generation data science IDE
Other
2.38k stars 70 forks source link

Insert Code Cell doesn't split up cell when applied inside code cell #1509

Closed EmilHvitfeldt closed 11 months ago

EmilHvitfeldt commented 11 months ago

Positron Version:

Positron Version: 2023.10.0 (Universal) build 6 Code - OSS Version: 1.82.0 Commit: 9e7968db8487628e8e77e5819de637a0e30e4922 Date: 2023-10-05T03:09:32.335Z Electron: 25.8.0 ElectronBuildId: undefined Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin arm64 22.6.0

Steps to reproduce the issue:

  1. Write code cell with multiple lines (3+)
  2. place cursor on one of middle lines
  3. run Quarto: Insert Code Cell

Kapture 2023-10-05 at 13 58 08

What did you expect to happen?

I expected that this followed RStudio behavior and would split the original code cell in 2 like image below:

Screenshot 2023-10-05 at 1 58 29 PM

Were there any error messages in the output or Developer Tools console?

Nope

jmcphers commented 11 months ago

Tracked in https://github.com/posit-dev/positron/issues/1330.