Skip to content

Commit

Permalink
Always load backups using utf-8 encoding and ignore etag
Browse files Browse the repository at this point in the history
Fixes #14132
  • Loading branch information
Tyriar committed Nov 4, 2016
1 parent 178c8f8 commit 8ed9c07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
let getContentPromise: TPromise<IRawText>;
if (backupExists) {
const restoreResource = this.backupFileService.getBackupResource(this.resource);
const restoreOptions = { acceptTextOnly: true, etag: etag, encoding: this.preferredEncoding };
const restoreOptions = { acceptTextOnly: true, encoding: 'utf-8' };
getContentPromise = this.textFileService.resolveTextContent(restoreResource, restoreOptions).then(content => content.value);
} else {
getContentPromise = TPromise.as(content.value);
Expand Down

0 comments on commit 8ed9c07

Please sign in to comment.