java.lang.Object
com.github.copilot.generated.rpc.SessionWorkspacesApi
API methods for the
workspaces namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionRelative path and UTF-8 content for the workspace file to create or overwrite.diff(SessionWorkspacesDiffParams params) Parameters for computing a workspace diff.Identifies the target session.Identifies the target session.Identifies the target session.Checkpoint number to read.Relative path of the workspace file to read.Pasted content to save as a UTF-8 file in the session workspace.
-
Method Details
-
getWorkspace
Identifies the target session.- Since:
- 1.0.0
-
listFiles
Identifies the target session.- Since:
- 1.0.0
-
readFile
public CompletableFuture<SessionWorkspacesReadFileResult> readFile(SessionWorkspacesReadFileParams params) Relative path of the workspace file to read.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
createFile
Relative path and UTF-8 content for the workspace file to create or overwrite.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
listCheckpoints
Identifies the target session.- Since:
- 1.0.0
-
readCheckpoint
public CompletableFuture<SessionWorkspacesReadCheckpointResult> readCheckpoint(SessionWorkspacesReadCheckpointParams params) Checkpoint number to read.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
saveLargePaste
public CompletableFuture<SessionWorkspacesSaveLargePasteResult> saveLargePaste(SessionWorkspacesSaveLargePasteParams params) Pasted content to save as a UTF-8 file in the session workspace.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
diff
Parameters for computing a workspace diff.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-