Fix TS 2.4 Error in textFileService.ts (fixes #30213)

This commit is contained in:
Benjamin Pasero
2017-07-07 07:12:06 +02:00
parent 67fa0f6e3d
commit 7bb6cecdd1
2 changed files with 2 additions and 2 deletions
@@ -1674,7 +1674,7 @@ export class RevertFileAction extends Action {
}
if (resource && resource.scheme !== 'untitled') {
return this.textFileService.revert(resource, true /* force */);
return this.textFileService.revert(resource, { force: true });
}
return TPromise.as(true);
@@ -293,7 +293,7 @@ export interface ITextFileService extends IDisposable {
* @param resource the resource of the file to revert.
* @param force to force revert even when the file is not dirty
*/
revert(resource: URI, force?: boolean): TPromise<boolean>;
revert(resource: URI, options?: IRevertOptions): TPromise<boolean>;
/**
* Reverts all the provided resources and returns a promise with the operation result.