An inline completion item is a proposed text completion displayed as ghost text at the cursor. Users can preview it, accept it with Tab, reject it, or cycle through alternatives. section 10.3
A VS Code inline suggestion provider returns these items in an array. A provider receives the document, cursor position, invocation context, and cancellation token, then supplies one or more candidates. section 10.3
Selection-driven completion
A coding copilot can activate on a keybinding, collect the selected code, post it to a local generation endpoint, and place the returned text after the selection. Rechecking reversed selections keeps the cursor at the correct end for display.
