Skip to content

Function: selectionToContribution()

selectionToContribution(sel, url?): SelectionContribution

Defined in: packages/aiui-vscode/src/contribution.ts:74

Build the bus contribution payload for an editor selection. url is the provider's back-reference (a vscode://file/… URI), supplied by the caller so this stays host-free and testable.

Parameters

sel

EditorSelection

url?

string

Returns

SelectionContribution