Method
openFile
(
sessionId: string,
input: { path: string; line?: number },
)
Source from the content-addressed store, hash-verified
| 915 | } |
| 916 | |
| 917 | async openFile( |
| 918 | sessionId: string, |
| 919 | input: { path: string; line?: number }, |
| 920 | ): Promise<{ opened: true }> { |
| 921 | const body: Record<string, unknown> = { path: input.path }; |
| 922 | if (input.line !== undefined) body['line'] = input.line; |
| 923 | return this.http.post<{ opened: true }>( |
| 924 | `/sessions/${encodeURIComponent(sessionId)}/fs:open`, |
| 925 | body, |
| 926 | ); |
| 927 | } |
| 928 | |
| 929 | async revealFile( |
| 930 | sessionId: string, |
Callers
nothing calls this directly
Tested by
no test coverage detected