File tree Expand file tree Collapse file tree
services/files/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export interface IFileService {
5353 /**
5454 * Tries to activate a provider with the given scheme.
5555 */
56- activateProvider ( scheme : string ) : TPromise < void > ;
56+ activateProvider ( scheme : string ) : Thenable < void > ;
5757
5858 /**
5959 * Checks if this file service can handle the given resource.
Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ export class FileService extends Disposable implements IFileService {
208208 throw new Error ( 'not implemented' ) ;
209209 }
210210
211- activateProvider ( scheme : string ) : TPromise < void > {
212- return TPromise . wrapError ( new Error ( 'not implemented' ) ) ;
211+ activateProvider ( scheme : string ) : Thenable < void > {
212+ return Promise . reject ( new Error ( 'not implemented' ) ) ;
213213 }
214214
215215 canHandleResource ( resource : uri ) : boolean {
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ export class RemoteFileService extends FileService {
206206 } ;
207207 }
208208
209- activateProvider ( scheme : string ) : TPromise < void > {
209+ activateProvider ( scheme : string ) : Thenable < void > {
210210 return this . _extensionService . activateByEvent ( 'onFileSystem:' + scheme ) ;
211211 }
212212
Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ export class TestFileService implements IFileService {
883883 }
884884
885885 activateProvider ( _scheme : string ) {
886- return TPromise . as ( null ) ;
886+ return Promise . resolve ( null ) ;
887887 }
888888
889889 canHandleResource ( resource : URI ) : boolean {
You can’t perform that action at this time.
0 commit comments