(path: string | vscode.Uri, content: string)
| 275 | export const sanitizePath = (path: string) => (path.startsWith("/") ? path : `/${path}`); |
| 276 | |
| 277 | export const writeToFile = async (path: string | vscode.Uri, content: string) => { |
| 278 | const destination = typeof path === "string" ? vscode.Uri.file(path) : path; |
| 279 | await vscode.workspace.fs.writeFile(destination, Buffer.from(content)); |
| 280 | }; |
| 281 | |
| 282 | export const joinPath = (base: vscode.Uri, ...args: string[]) => vscode.Uri.joinPath(base, ...args); |
| 283 |
no outgoing calls
no test coverage detected