Catch request cancelled error

This commit is contained in:
Nora
2024-01-04 15:19:10 +00:00
parent ad8dc1e906
commit eb59ead817

View File

@@ -466,6 +466,13 @@ export class ModelEditorView extends AbstractWebview<
this.modelingStore.setMethods(this.databaseItem, queryResult);
} catch (err) {
if (
getErrorMessage(err).match(/The request \(.*\) has been cancelled/i)
) {
this.panel?.dispose();
return;
}
void showAndLogExceptionWithTelemetry(
this.app.logger,
this.app.telemetry,