mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
ignore dispose-errors, fixes #30578
This commit is contained in:
@@ -542,8 +542,10 @@ export class ExtHostTextEditor implements vscode.TextEditor {
|
||||
return TPromise.as(undefined);
|
||||
}
|
||||
return callback().then(() => this, err => {
|
||||
if (err instanceof Error && err.name === 'DISPOSED') {
|
||||
return;
|
||||
}
|
||||
console.warn(err);
|
||||
return undefined;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user