From ba2b2fc543ec1deecc3e69a0b38a7cfab53c9de1 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Wed, 28 May 2025 05:06:31 +0000 Subject: [PATCH] fix: placeholder for PyWebViewPlatformService writeAndShareFile --- src/services/platforms/PyWebViewPlatformService.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/services/platforms/PyWebViewPlatformService.ts b/src/services/platforms/PyWebViewPlatformService.ts index 97778459..5caf7b3a 100644 --- a/src/services/platforms/PyWebViewPlatformService.ts +++ b/src/services/platforms/PyWebViewPlatformService.ts @@ -120,4 +120,16 @@ export class PyWebViewPlatformService implements PlatformService { ): Promise<{ changes: number; lastId?: number }> { throw new Error("Not implemented for " + sql + " with params " + params); } + + /** + * Should write and share a file using the Python backend. + * @param _fileName - Name of the file to write and share + * @param _content - Content to write to the file + * @throws Error with "Not implemented" message + * @todo Implement file writing and sharing through pywebview's Python-JavaScript bridge + */ + async writeAndShareFile(_fileName: string, _content: string): Promise { + logger.error("writeAndShareFile not implemented in PyWebView platform"); + throw new Error("Not implemented"); + } }