* Get the contents of a file within the workspace. The file is expected to be * encoded as UTF-8. * * @param {Workspace} workspace - The workspace. * @param {string} path - The path to the file, relative to the workspace root. * @returns {Promise } The contents of the file.
(workspace, path)
| 49 | * @returns {Promise<string>} The contents of the file. |
| 50 | */ |
| 51 | async function getWorkspaceFile(workspace, path) { |
| 52 | return await readFile(getWorkspacePath(workspace, path), 'utf8'); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Expect that the workspace has the given field, and that it is a non-null |
no test coverage detected
searching dependent graphs…