Open viktomas opened 1 month ago
The problem is that if IntelliSense is open and the InlineCompletionProvider is Invoked and returns multiple items, only the first one is shown, and the suggestion toolbar doesn't show a counter.
At the moment, for suggest augmentations, we only consider the first inline suggestion that augments the selected suggest item:
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
Does this issue occur when all extensions are disabled?: Yes
VS Code Version:
OS Version: MacOS Sonoma 14.5 (23F79)
Problem
The problem is that if IntelliSense is open and the
InlineCompletionProvider
isInvoked
and returns multiple items, only the first one is shown, and the suggestion toolbar doesn't show a counter.This issue happens in VS Code. I created a minimal extension to reproduce the issue here https://gitlab.com/viktomas/vscode-extension-itellisensense-inline-completion-issue
Steps to Reproduce:
git clone https://gitlab.com/viktomas/vscode-extension-itellisensense-inline-completion-issue.git
Considerations
It's possible that I misunderstood the documentation and I craft the
vscode.InlineCompletionItem
incorrectly. However, then I would expect that the inline item won't show even if the completion isAutomatic
ally invoked.Example implementation
For completeness, I also include the relevant part of the
extension.ts
file from the example extension.The full example code can be checked here https://gitlab.com/viktomas/vscode-extension-itellisensense-inline-completion-issue/-/commit/d8f156fac429ce713b02c020be573eed068d7b61, it's 36 lines.