提交 7bb6cecd 编写于 作者: B Benjamin Pasero

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

上级 67fa0f6e
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册