Catch request cancelled error
This commit is contained in:
@@ -466,6 +466,13 @@ export class ModelEditorView extends AbstractWebview<
|
|||||||
|
|
||||||
this.modelingStore.setMethods(this.databaseItem, queryResult);
|
this.modelingStore.setMethods(this.databaseItem, queryResult);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
if (
|
||||||
|
getErrorMessage(err).match(/The request \(.*\) has been cancelled/i)
|
||||||
|
) {
|
||||||
|
this.panel?.dispose();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
void showAndLogExceptionWithTelemetry(
|
void showAndLogExceptionWithTelemetry(
|
||||||
this.app.logger,
|
this.app.logger,
|
||||||
this.app.telemetry,
|
this.app.telemetry,
|
||||||
|
|||||||
Reference in New Issue
Block a user