(config: SessionDirProvider, workspaceId: string)
| 37 | } |
| 38 | |
| 39 | async function readContentFile(config: SessionDirProvider, workspaceId: string): Promise<string> { |
| 40 | try { |
| 41 | return await fs.readFile(getAdditionalSystemContextPath(config, workspaceId), "utf-8"); |
| 42 | } catch (error) { |
| 43 | if (isErrnoWithCode(error, "ENOENT")) { |
| 44 | return ""; |
| 45 | } |
| 46 | throw error; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | async function readEnabledFlag(config: SessionDirProvider, workspaceId: string): Promise<boolean> { |
| 51 | // Default to enabled when the marker file is absent. |
no test coverage detected