REditorSupport / REditorSupport/vscode-R

Expand Session watcher when parantheses

Open
#1,495 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,
first of all thanks you fort this great extension !

Describe the bug
I have a problem with variable autocompletion when my code is in parantheses.
I alerady this issue :) https://github.com/REditorSupport/vscode-R/issues/323

To Reproduce
No problem when I use this code:

  raw %>% select()

But from the moment I put my code in brackets, autocompletion no longer works:

(
  raw %>% select()
)

Additional context
It's actually quite limiting for me because I use this system of parentheses a lot in my code for debugging. Eg :

(
  umi_side_DuplexUMI
  %>% select(-umi2)
  %>% group_by(sample, umi1)
  %>% summarise(count = sum(count))
  %>% arrange(count)
  %>% mutate(count_cumsum=cumsum(count))
  %>% ungroup()
  %>% group_by(sample)
  %>% mutate(n = 1:n())
) -> umi1DuplexUMIyUMI

Thank you in advance for your positive or negative response :)

Have a nice day,

BoudSTER

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 reproducing the autocompletion failure using the parenthesized R examples in the issue, then trace the Session watcher behavior involved in variable completion. Done means completion works inside parentheses as it does for the equivalent unwrapped pipeline.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.