VSCodeVim / VSCodeVim/Vim

inlineCompletion is not triggered when pressing "o" to insert new line

Open
#8,492 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

Describe the bug

Hello. I am writing a vscode extension with code completion using inlineCompletionProvider. But I find that inlineCompletion is not triggered when pressing "o" in normal mode to switch to insert mode with an new line inserted.

To Reproduce

  1. debug an extension with inlineCompletion. eg: https://github.com/microsoft/vscode-extension-samples/tree/main/inline-completions
  2. add a breakpoint in inlineCompletionProvider
  3. enable vscodevim extension
  4. press "o" in normal mode
  5. the debugging extension doesn't run into the breakpoint and inlineCompletion is not triggered.

Expected behavior

InlineCompletion should be triggered when user press "o", because that was an action before insert and write a new line of code.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.25.2
  • VSCode version: 1.79.2
  • OS: macos

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 with the VS Code inline-completions extension sample and its inlineCompletionProvider breakpoint, then reproduce the normal-mode “o” action with VSCodeVim enabled. Trace whether the provider is invoked after the new line is inserted; done means the breakpoint is reached and inline completion triggers when pressing “o”.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.