Skip to content

Interface: SelectionContribution

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

A code selection contributed to the session's turn — the payload published on SESSION_CONTRIBUTION_TOPIC.

Properties

kind

kind: "selection"

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


lines?

optional lines?: number

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

Inclusive line count; consumers derive it from text if omitted.


role?

optional role?: string

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

The contributing view's role — this provider says "vscode".


sourceLoc?

optional sourceLoc?: string

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

Human locator: file:line:col (single line) or file:start-end.


text

text: string

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

The selected text, verbatim.


url?

optional url?: string

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

Where the selection came from (here: a vscode://file/… URI).