Don't require return value backup

Fixes #91703

All custom editors should implement backup or throw an exception if they cannot for some reason.
This commit is contained in:
Matt Bierner
2020-02-27 11:55:33 -08:00
parent 06529506b2
commit 8ef18acdaf
5 changed files with 12 additions and 8 deletions

View File

@@ -727,7 +727,7 @@ export class ExtHostWebviews implements ExtHostWebviewsShape {
return document._saveAs(URI.revive(targetResource));
}
async $backup(resourceComponents: UriComponents, viewType: string, cancellation: CancellationToken): Promise<boolean> {
async $backup(resourceComponents: UriComponents, viewType: string, cancellation: CancellationToken): Promise<void> {
const document = this.getDocument(viewType, resourceComponents);
return document._backup(cancellation);
}