VSCodeVim / VSCodeVim/Vim

Block comments are not working properly

Open
#7,853 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Block comments like gC3j are not working properly.

Steps to Reproduce:

  1. Install C/C++ extension from Microsoft.
  2. Create hello.c file:
#include <stdio.h>
#include <math.h>
  1. Position cursor at the beginning of the first line of hello.c (Normal mode).
  2. Type gCj
  3. screenshot_2022-07-19_12:37:43

Expected behavior
screenshot_2022-07-19_12:46:03

Environment:

  • Extension (VsCodeVim) version: v1.23.1
  • VSCode version: 1.69.2
  • OS: Linux, Debian 11 (bullseye)

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 hello.c with the Microsoft C/C++ extension by placing the cursor at the first line and running gCj. Start by tracing the block-comment handling for this command in the VSCodeVim extension. Done means gCj applies the expected comments to the selected lines, matching the expected screenshot.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp, typescript, vscode
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.