#316 - Surpress disposed webview notifications

This commit is contained in:
Elio Struyf
2022-04-11 13:22:20 +02:00
parent 93370095e9
commit 935ef83c4f
+4
View File
@@ -174,6 +174,10 @@ export class PagesListener extends BaseListener {
}
} catch (error: any) {
if ((error as Error)?.message.toLowerCase() === "webview is disposed") {
continue;
}
Logger.error(`PagesListener::getPagesData: ${file.filePath} - ${error.message}`);
Notifications.error(`File error: ${file.filePath} - ${error?.message || error}`);
}