VSCodeVim / VSCodeVim/Vim

Conflict with clangd autocomplete

Open
#5,589 0 comments 3 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

Describe the bug
While using the clangd's autocomplete, if there is more than one parameter, I will use Tab to jump to the next parameter and I can enter fluently. But with vim, while I using Tab, it'll jump to the next parameter in visual mode, and sometimes I need to use 's' many times to get into insert mode. If I use 'I', the cursor might jump to some strange place.

To Reproduce
Steps to reproduce the behavior:

  1. Open a cpp file
  2. Insert a Multi-parameter function name(like for)
  3. Use Tab to get into autocomplete
  4. Insert the first parameter
  5. Press Tab
  6. See the error

Expected behavior
After I enter the first parameter and press Tab, the cursor will jump to the next parameter with insert mode and can insert directly.

Screenshots
截屏2020-11-06 下午1 38 27
autocomplete from clangd
截屏2020-11-06 下午1 38 53
insert the first parameter
截屏2020-11-06 下午1 39 08
press Tab and now is in visual mode
截屏2020-11-06 下午1 39 27
press 'I' and the cursor jump to the last line.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.17.1
  • VSCode version: 1.50.1
  • OS: macOS Catalina 10.15.7

Additional context

  • clangd version: 0.1.7

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 behavior in a C++ file with clangd autocomplete using the listed VSCodeVim, VSCode, and clangd versions. Trace how Tab is handled after the first parameter; done means Tab moves to the next parameter while remaining in insert mode, without entering visual mode or moving the cursor unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.