Skip to content

Interface: DiffContentRequest

Defined in: packages/sdk/src/editor-service.ts:130

The request a DiffContentProvider receives to resolve a diff's two sides — the OpenDiffSpec's filePath/args plus the workspace folder that contains that file (the natural cwd for path-relative providers). In a multi-root workspace this is the matching root (primary or an extraFolder such as an opened git worktree), not always the primary folder.

Properties

filePath

ts
filePath: string;

Defined in: packages/sdk/src/editor-service.ts:132

The file the diff is OF (from OpenDiffSpec.filePath).


args?

ts
optional args?: Record<string, unknown>;

Defined in: packages/sdk/src/editor-service.ts:134

The provider's args (from OpenDiffSpec.args).


workspaceFolder

ts
workspaceFolder: string | null;

Defined in: packages/sdk/src/editor-service.ts:140

Workspace root that contains DiffContentRequest.filePath, or null if none. Prefer this over the workspace primary folder when roots differ (e.g. a linked worktree opened alongside).