API InlineCompletions Finalised #26
Replies: 5 comments 12 replies
-
Sounds very cool! Do we have some guidance somewhere around when to use which type of completion? |
Beta Was this translation helpful? Give feedback.
-
My extension has default bindings for both Tracking this on Calva here: BetterThanTomorrow/calva#1781 |
Beta Was this translation helpful? Give feedback.
-
Hi, Could I know when the inline completion api would be available in the official vscode (not the insider version)? Thank you! |
Beta Was this translation helpful? Give feedback.
-
How may I start using this API? Is there any specific changes to do in my Is there any example of how to use it? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to listen for events when an inline completion was accepted, even from a different extension? |
Beta Was this translation helpful? Give feedback.
-
We have finalized the Inline Completions API. This allows extensions to provide inline completions that are decoupled from the suggestion widget. An inline completion is rendered as if it was already accepted, but with a grey color. Users can cycle through suggestions and accept them with the
Tab
key.An example extension that uses Inline Completions is GitHub Copilot.
More information can be found in the
vscode.d.ts
file with the entrypoint into the API beinglanguages.registerInlineCompletionItemProvider
.Try out this API and we are very excited to see what you will build with it. Feedback is very much appreciated!
fyi @hediet
Beta Was this translation helpful? Give feedback.
All reactions