Skip to content

Interface: DiffContentRequest

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

The request a DiffContentProvider receives to resolve a diff's two sides — the OpenDiffSpec's filePath/args plus the folder of the workspace the diff lives in (the natural cwd for path-relative providers).

Properties

filePath

ts
filePath: string;

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

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


args?

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

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

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


workspaceFolder

ts
workspaceFolder: string | null;

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

Folder of the workspace the diff lives in, or null if none.