REditorSupport / REditorSupport/vscode-R

request codeLensCommands: run to next chunck

Open
#1,638 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Is your feature request related to a problem? Please describe.
I'm using rstudio like section # xxx ---- and ## xxx ---- for outline which works well for vscode.

However, if I put the section as chunck, but subsection not. The extension will recogonization the first part as chunck. For example:

# %% chunck 1 ----
x <- 1
## subection 1 ---
y <- 1

# %% chunck 2 ----
print(y)

If I run code lens command run current chunck on chunck 1, it will run code to subsection 1, but not to chunck 2.

Describe the solution you'd like
I'd like a lens command run to next chunck which will run code between two chuncks.

FYI. There is a command r.goToNextChunk.

Contributor guide

Open the contributing guide

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 locating the implementation of the existing r.goToNextChunk command and the code lens command handling in the VS Code extension. Trace how the current chunk boundaries are detected, then verify that the new command runs from the current chunk to the next chunk without stopping at subsections.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.