inlineCompletion is not triggered when pressing "o" to insert new line
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
- debug an extension with inlineCompletion. eg: https://github.com/microsoft/vscode-extension-samples/tree/main/inline-completions
- add a breakpoint in inlineCompletionProvider
- enable vscodevim extension
- press "o" in normal mode
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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