(file: PathLike | number, encoding?: string)
| 204 | export function readContent(file: PathLike | number): Promise<Buffer> | undefined; |
| 205 | export function readContent(file: PathLike | number, encoding: string): Promise<string> | undefined; |
| 206 | export function readContent(file: PathLike | number, encoding?: string): Promise<string | Buffer> | undefined { |
| 207 | if (isGuestSession) { |
| 208 | return encoding === undefined ? rGuestService?.requestFileContent(file) : rGuestService?.requestFileContent(file, encoding); |
| 209 | } else { |
| 210 | return encoding === undefined ? readFile(file) : readFile(file, encoding); |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | |
| 215 | export async function saveDocument(document: vscode.TextDocument): Promise<boolean> { |
no test coverage detected