REditorSupport / REditorSupport/vscode-R

VSCode autocompletion doesn't "complete", duplicates existing text

Open
#821 19 comments 4 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

Apologies if this is easily fixed, but I wasn't able to find it in the docs.

On my Mac, when I type any VSCode autocompletion, the autocompletion appends to what I have already written, producing invalid code. Say I'm writing is.infinite, and I have written is., I navigate over to infinite and press tab or Enter and the editor produces is.is.infinite().

Is there a setting to change this behavior? Is this intended to be the default behavior? Or am I missing something?

Thank you.

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

Reproduce the issue in VSCode using the R extension with a partially typed completion such as is. and the infinite suggestion, confirming the behavior with Tab and Enter. Trace the completion handling from the extension entry point to determine why the existing prefix is duplicated; done means selecting a completion replaces the typed prefix and produces valid R code.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.