ignore dispose-errors, fixes #30578

This commit is contained in:
Johannes Rieken
2017-08-16 12:00:51 +02:00
parent 96419c25c2
commit b8e8c435cc
3 changed files with 17 additions and 8 deletions

View File

@@ -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;
});
}
}