mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 10:16:01 +01:00
Fix TS 2.4 Error in textFileService.ts (fixes #30213)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user