avoid async and winjs.promise, #53442

This commit is contained in:
Johannes Rieken
2018-07-02 14:47:31 +02:00
parent 2fa8021810
commit e522018d26
2 changed files with 4 additions and 4 deletions

View File

@@ -146,7 +146,7 @@ export class ExtHostFileSystemEventService implements ExtHostFileSystemEventServ
const newUri = URI.revive(newUriDto);
const edits: WorkspaceEdit[] = [];
return this._onWillRenameFile.fireAsync((bucket, listener) => {
return TPromise.wrap(this._onWillRenameFile.fireAsync((bucket, listener) => {
return {
oldUri,
newUri,
@@ -179,6 +179,6 @@ export class ExtHostFileSystemEventService implements ExtHostFileSystemEventServ
}
}
return this._mainThreadTextEditors.$tryApplyWorkspaceEdit({ edits: flatten(allEdits) });
});
}));
}
}