Are InlineCompletionsProvider handleDidPartiallyAcceptCompletionItem and handleDidShowCompletionItem experimental features expected to be moved out of proposed?
The new additions to InlineCompletionsProvider (https://github.com/microsoft/vscode/blob/main/src/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts#L42-#L56) to track partial accepts and if a completion item was shown seem pretty useful for improving accounting and metrics for completions providers. Since they have been part of vscode.proposed.d.ts for a while now, is there a timeline in place to move them out of experimental status? I'm trying to build out tracking for partial accepts, and having this visibility as a part of the extension API would be much nicer to have.
@hediet any updates on the timeline?
I'm eagerly anticipating this as well. Hoping for a swift merge!
@hediet Seems like this proposal has been around for over 2 years now, is there any reason to keep it experimental?
It would be extremely useful for other extensions to be able to access this too
+1 to this feature request.
@hediet Come on
+1 to this feature request.
+1 to this feature request
Thanks for sharing your passion. This is something that we do want to finalize, we just did not have the cycles to do it yet. I will provide updates on our plans in the following months. Thanks for your understanding.
@hediet Come on! Is this proposal has any updates?
+1, with a concrete use case, and a request to include the next-edit and provider-metadata members of the same proposal.
We publish Muse Spark Code (Unofficial) on the Marketplace (engine floor VS Code 1.99). We're adding inline completions with the stable InlineCompletionItemProvider, backed by a pay-per-token model API. We checked vscode.d.ts from 1.99.0 to 1.140.0: the stable inline-completion surface hasn't changed in that range. These are the parts of vscode.proposed.inlineCompletionsAdditions.d.ts that a published extension can't use but needs:
handleDidShowCompletionItem,handleDidPartiallyAcceptCompletionItem,handleEndOfLifetime(this issue).- Every suggestion is a billed request, and we want to show the user what Tab cost and how often it was accepted.
- With the stable API, the only signal is the item's
command, after a full accept. A word or line accept (Ctrl/Cmd+Right) is invisible, so we'll have to infer it from document changes and label it as inferred.
isInlineEdit,showRange,jumpToPosition,displayLocation(next edit suggestions).- The stable
rangemust stay on one line, so a published extension can't offer an edit away from the cursor at all. - Copilot's NES reaches users through the built-in extension's proposal access, while
vsce publishrefusesenabledApiProposals. - Today NES is effectively first-party only.
- The stable
InlineCompletionItemProviderMetadata:yieldTo,debounceDelayMs,displayName.- Since 1.116, Copilot is built in and registers its provider with
debounceDelayMs: 0. So VS Code's own debounce is 0 whenever it's present, and on an automatic trigger the fastest provider wins. - A third-party provider can't declare its own debounce or say it yields. Each request it sends that loses the race is wasted, and with a paid API it's billed for nothing.
- We plan to yield to Copilot by default, but the only check the stable API offers is whether its extension is active. Since 1.116, that no longer tells us whether Copilot is actually suggesting.
- Since 1.116, Copilot is built in and registers its provider with
If finalizing everything at once is too big, could the next-edit fields and the provider metadata be split into their own finalization item, with a note on what's blocking them? Even the show and partial-accept callbacks alone would help every third-party provider that bills per request or reports acceptance.
+1, with another concrete use case: a third-party Next Edit provider that is blocked from the Marketplace by this proposal.
AI Autocomplete (Apache-2.0) is an autocomplete-only extension for self-hosted and cloud models: fill-in-the-middle ghost text plus Next Edit suggestions from models such as Zeta 2.1, Sweep and Qwen, mostly running locally on llama.cpp. It uses these members of inlineCompletionsAdditions:
isInlineEdit,showRange,displayLocation/jumpToPosition: to show an edit away from the cursor in VS Code's own inline-edit view;handleDidShowCompletionItem,handleEndOfLifetime(withInlineCompletionEndOfLifeReasonKind),handleDidPartiallyAcceptCompletionItem: to know whether a suggestion was shown, accepted or explicitly rejected, so a rejected edit is not offered again;yieldTo,groupId,debounceDelayMs,onDidChange: to cooperate with other providers and show a result that arrives after the request.
Without the proposal the extension falls back to decorations, which works but looks rough for multi-line rewrites. Users who want the native view today have to add the extension to enable-proposed-api in argv.json, and the extension cannot be published to the Marketplace at all because it declares the proposal (it is on Open VSX and GitHub releases instead).
Finalizing even the inline-edit subset (isInlineEdit, showRange, displayLocation/jumpToPosition and the end-of-lifetime reason) would let third-party Next Edit models use the same UI as Copilot's. Happy to test a finalized shape against a few local models if that helps.