From 7bb6cecdd1043aba3acde4d42fdd4e83c61eab9f Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Fri, 7 Jul 2017 07:12:06 +0200 Subject: [PATCH] Fix TS 2.4 Error in textFileService.ts (fixes #30213) --- src/vs/workbench/parts/files/browser/fileActions.ts | 2 +- src/vs/workbench/services/textfile/common/textfiles.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/parts/files/browser/fileActions.ts b/src/vs/workbench/parts/files/browser/fileActions.ts index 3d8b4525a13..6b69c284b18 100644 --- a/src/vs/workbench/parts/files/browser/fileActions.ts +++ b/src/vs/workbench/parts/files/browser/fileActions.ts @@ -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); diff --git a/src/vs/workbench/services/textfile/common/textfiles.ts b/src/vs/workbench/services/textfile/common/textfiles.ts index 3b60292f8a9..29933972ac8 100644 --- a/src/vs/workbench/services/textfile/common/textfiles.ts +++ b/src/vs/workbench/services/textfile/common/textfiles.ts @@ -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; + revert(resource: URI, options?: IRevertOptions): TPromise; /** * Reverts all the provided resources and returns a promise with the operation result. -- GitLab