@@ -472,12 +472,12 @@ export class RemoteFileService extends FileService {
472472 }
473473 }
474474
475- private _writeFile ( provider : IFileSystemProvider , resource : URI , snapshot : ITextSnapshot , preferredEncoding : string , options : FileWriteOptions ) : TPromise < IFileStat > {
475+ private _writeFile ( provider : IFileSystemProvider , resource : URI , snapshot : ITextSnapshot , preferredEncoding : string , options : FileWriteOptions ) : Promise < IFileStat > {
476476 const readable = createReadableOfSnapshot ( snapshot ) ;
477477 const encoding = this . encoding . getWriteEncoding ( resource , preferredEncoding ) ;
478478 const encoder = encodeStream ( encoding ) ;
479479 const target = createWritableOfProvider ( provider , resource , options ) ;
480- return new TPromise < IFileStat > ( ( resolve , reject ) => {
480+ return new Promise < IFileStat > ( ( resolve , reject ) => {
481481 readable . pipe ( encoder ) . pipe ( target ) ;
482482 target . once ( 'error' , err => reject ( err ) ) ;
483483 target . once ( 'finish' , _ => resolve ( void 0 ) ) ;
@@ -486,8 +486,8 @@ export class RemoteFileService extends FileService {
486486 } ) ;
487487 }
488488
489- private static _asContent ( content : IStreamContent ) : TPromise < IContent > {
490- return new TPromise < IContent > ( ( resolve , reject ) => {
489+ private static _asContent ( content : IStreamContent ) : Promise < IContent > {
490+ return new Promise < IContent > ( ( resolve , reject ) => {
491491 let result : IContent = {
492492 value : '' ,
493493 encoding : content . encoding ,
0 commit comments